Пример #1
0
 @Override
 public void onLoaderReset(Loader<Cursor> loader) {
   Cursor old = mAdapter.swapCursor(null);
   if (old != null) {
     old.close();
   }
 }
Пример #2
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
   Cursor old = mAdapter.swapCursor(data);
   if (old != null) {
     old.close();
   }
 }