diff --git a/mobile/android/base/BrowserApp.java b/mobile/android/base/BrowserApp.java index a15f4097967d..1acc15076c61 100644 --- a/mobile/android/base/BrowserApp.java +++ b/mobile/android/base/BrowserApp.java @@ -1928,7 +1928,7 @@ abstract public class BrowserApp extends GeckoApp */ private void addAddonMenuItemToMenu(final Menu menu, final MenuItemInfo info) { info.added = true; - + final Menu destination; if (info.parent == 0) { destination = menu; @@ -2092,11 +2092,8 @@ abstract public class BrowserApp extends GeckoApp @Override public void openOptionsMenu() { - // Disable menu access in edge cases only accessible to hardware menu buttons. - if ((!hasTabsSideBar() && areTabsShown()) || - mBrowserToolbar.isEditing()) { + if (!hasTabsSideBar() && areTabsShown()) return; - } // Scroll custom menu to the top if (mMenuPanel != null) @@ -2581,7 +2578,7 @@ abstract public class BrowserApp extends GeckoApp @Override public void onNewTabs(String[] urls) { final EnumSet flags = EnumSet.of(OnUrlOpenListener.Flags.ALLOW_SWITCH_TO_TAB); - + for (String url : urls) { if (!maybeSwitchToTab(url, flags)) { openUrlAndStopEditing(url, true); diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java index 8180cb26262d..6bf78a7405a2 100644 --- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -399,7 +399,7 @@ public abstract class GeckoApp return mMenuPanel; } - + return super.onCreatePanelView(featureId); }