@Override
 public void onAttach(Activity activity) {
   super.onAttach(activity);
   mContext = activity;
   mPhotoManager = ContactPhotoManager.getInstance(mContext);
   mMemberListAdapter = new MemberListAdapter();
 }
コード例 #2
0
 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);
     }
   }
 }