@Override public void onLoaderReset(Loader<Cursor> loader){
  if (Global.debugEnabled) {
    Log.i(Global.LOG_CONTEXT,mDebugPrefix + " onLoaderReset" + getDebugContext());
  }
  mLastVisiblePosition=mGalleryView.getLastVisiblePosition();
  mAdapter.swapCursor(null);
  mAdapter.notifyDataSetChanged();
}

@ Override public void onLoaderReset ( Loader < Cursor > loader ) { if ( Global . debugEnabled ) { Log . i ( Global . LOG_CONTEXT , mDebugPrefix + " onLoaderReset" + getDebugContext ( ) ) ; } mLastVisiblePosition = mGalleryView . getLastVisiblePosition ( ) ; mAdapter . swapCursor ( null ) ; mAdapter . notifyDataSetChanged ( ) ; }
called by loadermanager . after search criteria were changed or if activity is destroyed .
