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);
|
lss = new Utility.ListStateSaver(lv);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the adapter.
|
if (cursor.getCount() == 0) {
|
||||||
mListAdapter.changeCursor(cursor);
|
mListAdapter.changeCursor(null);
|
||||||
setListAdapter(mListAdapter);
|
setListShown(false);
|
||||||
setListShown(true);
|
} else {
|
||||||
highlightSelectedMailbox();
|
// Set the adapter.
|
||||||
|
mListAdapter.changeCursor(cursor);
|
||||||
|
setListAdapter(mListAdapter);
|
||||||
|
setListShown(true);
|
||||||
|
highlightSelectedMailbox();
|
||||||
|
}
|
||||||
|
|
||||||
// Restore the state
|
// Restore the state
|
||||||
lss.restore(lv);
|
lss.restore(lv);
|
||||||
|
Loading…
Reference in New Issue
Block a user