Code example for Activity

Methods: getLayoutInflater

0
    private boolean mAutoRequery;
    private boolean mRequeryPending;
 
    public ChatListAdapter(IImConnection conn, Activity activity) {
        mActivity = activity;
        mInflate = activity.getLayoutInflater();
        mHandler = new SimpleAlertHandler(activity);
 
        mAdapter = new ListTreeAdapter(null);
 
        mContentObserver = new MyContentObserver();
        mDataSetObserver = new MyDataSetObserver();
        mQueryHandler = new QueryHandler(activity);
 
        changeConnection(conn);
    } 
 
    public void changeConnection(IImConnection conn) {
        mQueryHandler.cancelOperation(TOKEN_ONGOING_CONVERSATION);
 
        synchronized (this) {