@Override public void onAttach(Activity activity) { super.onAttach(activity); mContext = activity; mPhotoManager = ContactPhotoManager.getInstance(mContext); mMemberListAdapter = new MemberListAdapter(); }
protected void configurePhotoLoader() { if (isPhotoLoaderEnabled() && mContext != null) { if (mPhotoManager == null) { mPhotoManager = ContactPhotoManager.getInstance(mContext); } if (mListView != null) { mListView.setOnScrollListener(this); } if (mAdapter != null) { mAdapter.setPhotoLoader(mPhotoManager); } } }