@Override
 public void onScrollStateChanged(AbsListView view, int scrollState) {
   if (scrollState == OnScrollListener.SCROLL_STATE_FLING) {
     mPhotoManager.pause();
   } else if (isPhotoLoaderEnabled()) {
     mPhotoManager.resume();
   }
 }
 @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);
     }
   }
 }