diff options
Diffstat (limited to 'src/com/android/browser/NavigationBarBase.java')
-rw-r--r-- | src/com/android/browser/NavigationBarBase.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/NavigationBarBase.java b/src/com/android/browser/NavigationBarBase.java index e6eed18..aa8b79f 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(); } |