Use swapCursor(null) instead of changeCursor(null)

The later closes the old cursor while the former doesn't.
LoaderManager takes care of closing cursors, so no need to close
cursors by ourselves.

Change-Id: Ib652e6877dcfc1fea51ffc862254eaeed451cdfa
This commit is contained in:
Makoto Onuki 2010-12-22 17:35:44 -08:00
parent cb89e057ec
commit e0f28d7853

View File

@ -365,7 +365,7 @@ public class MessageListFragment extends ListFragment
stopLoaders();
onDeselectAll();
if (mListAdapter != null) {
mListAdapter.changeCursor(null);
mListAdapter.swapCursor(null);
}
setListShownNoAnimation(false);
}