summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarBase.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-08-11 16:03:32 -0700
committerJohn Reck <jreck@google.com>2011-08-11 16:04:54 -0700
commiteac25cd7ae17cd626fe55060dcd0a003e6171ad7 (patch)
tree54f55c022a0e6b4ba09d86e28cfbb09fee401d4d /src/com/android/browser/NavigationBarBase.java
parente3da7d615be4710da92a79e6ed70dc1982deda4c (diff)
downloadpackages_apps_Browser-eac25cd7ae17cd626fe55060dcd0a003e6171ad7.zip
packages_apps_Browser-eac25cd7ae17cd626fe55060dcd0a003e6171ad7.tar.gz
packages_apps_Browser-eac25cd7ae17cd626fe55060dcd0a003e6171ad7.tar.bz2
Menu shuffling
Bug: 5145209 Move some stuff from the overflow menu to the favicon menu Change-Id: Ied61630281f1fbb8078997d72af6333a6d527249
Diffstat (limited to 'src/com/android/browser/NavigationBarBase.java')
-rw-r--r--src/com/android/browser/NavigationBarBase.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/NavigationBarBase.java b/src/com/android/browser/NavigationBarBase.java
index 724dcc8..a4130b8 100644
--- a/src/com/android/browser/NavigationBarBase.java
+++ b/src/com/android/browser/NavigationBarBase.java
@@ -121,6 +121,11 @@ public class NavigationBarBase extends LinearLayout implements OnClickListener,
popup.getMenuInflater().inflate(R.menu.ua_switcher, menu);
menu.findItem(R.id.ua_mobile_menu_id).setChecked(!desktop);
menu.findItem(R.id.ua_desktop_menu_id).setChecked(desktop);
+ Tab tab = mUiController.getCurrentTab();
+ MenuItem saveSnapshot = menu.findItem(R.id.save_snapshot_menu_id);
+ saveSnapshot.setVisible(tab != null && !tab.isSnapshot());
+ MenuItem find = menu.findItem(R.id.find_menu_id);
+ find.setVisible(tab != null && !tab.isSnapshot());
popup.setOnMenuItemClickListener(this);
popup.show();
}