Merge "Always update adapter's cursor."
This commit is contained in:
commit
1c4b62a0ed
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue