Merge "MailboxList: Show the rotating icon when there's no mailbox"
This commit is contained in:
commit
f66a729cc4
@ -264,11 +264,16 @@ public class MailboxListFragment extends ListFragment implements OnItemClickList
|
||||
lss = new Utility.ListStateSaver(lv);
|
||||
}
|
||||
|
||||
// Set the adapter.
|
||||
mListAdapter.changeCursor(cursor);
|
||||
setListAdapter(mListAdapter);
|
||||
setListShown(true);
|
||||
highlightSelectedMailbox();
|
||||
if (cursor.getCount() == 0) {
|
||||
mListAdapter.changeCursor(null);
|
||||
setListShown(false);
|
||||
} else {
|
||||
// Set the adapter.
|
||||
mListAdapter.changeCursor(cursor);
|
||||
setListAdapter(mListAdapter);
|
||||
setListShown(true);
|
||||
highlightSelectedMailbox();
|
||||
}
|
||||
|
||||
// Restore the state
|
||||
lss.restore(lv);
|
||||
|
Loading…
Reference in New Issue
Block a user