Make search icon appear again.
The CL I just checked in to reduce the invalidateOptionsMenu calls removes the search icon because it expects the message list to be ready. Instead of just invalidating the menu a bunch more, just make it so that the icon is always shown, but we can't actually search if the message list isn't ready. The time between the icon being shown and the list being ready should be miniscule. Change-Id: I5dfe9363cc904833253cf1fceeeb2af2ec389217
This commit is contained in:
parent
f4f10a3fdf
commit
396a425d79
|
@ -756,7 +756,7 @@ abstract class UIControllerBase implements MailboxListFragment.Callback,
|
|||
}
|
||||
|
||||
// TODO: Should use an isSyncable call to prevent drafts/outbox from allowing this
|
||||
menu.findItem(R.id.search).setVisible(accountSearchable && isMessageListReady());
|
||||
menu.findItem(R.id.search).setVisible(accountSearchable);
|
||||
// TODO Show only for syncable mailbox as well.
|
||||
menu.findItem(R.id.mailbox_settings).setVisible(isEas
|
||||
&& (getMailboxSettingsMailboxId() != Mailbox.NO_MAILBOX));
|
||||
|
|
Loading…
Reference in New Issue