Merge "Always update adapter's cursor."

This commit is contained in:
Ben Komalo 2011-10-03 17:15:11 -07:00 committed by Android (Google) Code Review
commit 1c4b62a0ed
1 changed files with 3 additions and 3 deletions

View File

@ -1285,6 +1285,9 @@ public class MessageListFragment extends ListFragment
}
MessagesAdapter.MessagesCursor cursor = (MessagesAdapter.MessagesCursor) c;
// Update the list
mListAdapter.swapCursor(cursor);
if (!cursor.mIsFound) {
mCallback.onMailboxNotFound();
return;
@ -1315,9 +1318,6 @@ public class MessageListFragment extends ListFragment
mListAdapter.setShowColorChips(isCombinedMailbox() && mCountTotalAccounts > 1);
}
// Update the list
mListAdapter.swapCursor(cursor);
// Various post processing...
updateSearchHeader(cursor);
autoRefreshStaleMailbox();