Remove "Show all folders" menu item.

Now the account spinner has this.

Change-Id: I95e771e512f6c70ea9ddd8084c29a2f99b4cd758
This commit is contained in:
Makoto Onuki 2011-06-07 13:50:44 -07:00
parent ab40c98821
commit 101f929b3c
2 changed files with 0 additions and 28 deletions

View File

@ -39,17 +39,6 @@
android:icon="@drawable/ic_menu_refresh_holo_light" android:icon="@drawable/ic_menu_refresh_holo_light"
android:showAsAction="ifRoom" android:showAsAction="ifRoom"
/> />
<!--
STOPSHIP "Show all folders" should be in the account spinner, not here.
It's temporary UI until we get the ICS style account spinner.
-->
<item
android:id="@+id/show_all_folders"
android:orderInCategory="400"
android:title="@string/mailbox_list_account_selector_show_all_folders"
android:showAsAction="ifRoom"
android:visible="false"
/>
<item <item
android:id="@+id/account_settings" android:id="@+id/account_settings"
android:orderInCategory="2000" android:orderInCategory="2000"

View File

@ -520,21 +520,4 @@ class UIControllerOnePane extends UIControllerBase {
return mRefreshManager.isMailboxListRefreshing(getActualAccountId()); return mRefreshManager.isMailboxListRefreshing(getActualAccountId());
} }
} }
@Override
public boolean onPrepareOptionsMenu(MenuInflater inflater, Menu menu) {
// STOPSHIP For temporary menu item which should be visible only on 1-pane.
menu.findItem(R.id.show_all_folders).setVisible(true);
return super.onPrepareOptionsMenu(inflater, menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.show_all_folders: // STOPSHIP For temporary menu item
showAllMailboxes();
return true;
}
return super.onOptionsItemSelected(item);
}
} }