@Override public void onLoaderReset(Loader<Cursor> loader) { Cursor old = mAdapter.swapCursor(null); if (old != null) { old.close(); } }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { Cursor old = mAdapter.swapCursor(data); if (old != null) { old.close(); } }