From e0f28d78532bca93c09061e97e5fc4c97f0ce7b7 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Wed, 22 Dec 2010 17:35:44 -0800 Subject: [PATCH] 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 --- src/com/android/email/activity/MessageListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/MessageListFragment.java b/src/com/android/email/activity/MessageListFragment.java index de017df52..dfe22bfef 100644 --- a/src/com/android/email/activity/MessageListFragment.java +++ b/src/com/android/email/activity/MessageListFragment.java @@ -365,7 +365,7 @@ public class MessageListFragment extends ListFragment stopLoaders(); onDeselectAll(); if (mListAdapter != null) { - mListAdapter.changeCursor(null); + mListAdapter.swapCursor(null); } setListShownNoAnimation(false); }