Bug 1028705 - Accidentially dropped code from bitrot resolution. r=trivial
authorChenxia Liu <liuche@mozilla.com>
Fri, 11 Jul 2014 16:30:02 -0700
changeset 193782 4c74c20737387b117c3171b7d1e6e85d771a3ced
parent 193781 83a1a4866c9be0b754521a40da7f86fd7f8bdd4b
child 193783 81dbb087ceffca2b1adbab3ab9fd7f79a7711bc1
push id27129
push usercbook@mozilla.com
push dateMon, 14 Jul 2014 13:15:00 +0000
treeherdermozilla-central@340b19c14d3d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
bugs1028705
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1028705 - Accidentially dropped code from bitrot resolution. r=trivial
mobile/android/base/tabspanel/TabsPanel.java
--- a/mobile/android/base/tabspanel/TabsPanel.java
+++ b/mobile/android/base/tabspanel/TabsPanel.java
@@ -174,16 +174,20 @@ public class TabsPanel extends LinearLay
             @Override
             public void onClick(View view) {
                 showMenu();
             }
         });
     }
 
     public void showMenu() {
+        if (mCurrentPanel == Panel.REMOTE_TABS) {
+            return;
+        }
+
         final Menu menu = mPopupMenu.getMenu();
 
         // Each panel has a "+" shortcut button, so don't show it for that panel.
         menu.findItem(R.id.new_tab).setVisible(mCurrentPanel != Panel.NORMAL_TABS);
         menu.findItem(R.id.new_private_tab).setVisible(mCurrentPanel != Panel.PRIVATE_TABS);
 
         // Only show "Clear * tabs" for current panel.
         menu.findItem(R.id.close_all_tabs).setVisible(mCurrentPanel == Panel.NORMAL_TABS);