diff --git a/mobile/android/base/BrowserApp.java b/mobile/android/base/BrowserApp.java index dcc3516468e..53a94a30b79 100644 --- a/mobile/android/base/BrowserApp.java +++ b/mobile/android/base/BrowserApp.java @@ -774,11 +774,6 @@ abstract public class BrowserApp extends GeckoApp return true; } - if (itemId == R.id.share) { - shareCurrentUrl(); - return true; - } - if (itemId == R.id.subscribe) { Tab tab = Tabs.getInstance().getSelectedTab(); if (tab != null && tab.hasFeeds()) { diff --git a/mobile/android/base/resources/menu/titlebar_contextmenu.xml b/mobile/android/base/resources/menu/titlebar_contextmenu.xml index f0039324e4d..db6a5012ffb 100644 --- a/mobile/android/base/resources/menu/titlebar_contextmenu.xml +++ b/mobile/android/base/resources/menu/titlebar_contextmenu.xml @@ -11,9 +11,6 @@ - - diff --git a/mobile/android/base/toolbar/BrowserToolbar.java b/mobile/android/base/toolbar/BrowserToolbar.java index 3411eb80a23..478579dbc37 100644 --- a/mobile/android/base/toolbar/BrowserToolbar.java +++ b/mobile/android/base/toolbar/BrowserToolbar.java @@ -15,7 +15,6 @@ import org.mozilla.gecko.BrowserApp; import org.mozilla.gecko.EventDispatcher; import org.mozilla.gecko.GeckoAppShell; import org.mozilla.gecko.GeckoApplication; -import org.mozilla.gecko.GeckoProfile; import org.mozilla.gecko.LightweightTheme; import org.mozilla.gecko.R; import org.mozilla.gecko.Tab; @@ -335,7 +334,6 @@ public class BrowserToolbar extends ThemedRelativeLayout if (url == null) { menu.findItem(R.id.copyurl).setVisible(false); menu.findItem(R.id.add_to_launcher).setVisible(false); - MenuUtils.safeSetVisible(menu, R.id.share, false); } MenuUtils.safeSetVisible(menu, R.id.subscribe, tab.hasFeeds()); @@ -344,12 +342,9 @@ public class BrowserToolbar extends ThemedRelativeLayout // if there is no tab, remove anything tab dependent menu.findItem(R.id.copyurl).setVisible(false); menu.findItem(R.id.add_to_launcher).setVisible(false); - MenuUtils.safeSetVisible(menu, R.id.share, false); MenuUtils.safeSetVisible(menu, R.id.subscribe, false); MenuUtils.safeSetVisible(menu, R.id.add_search_engine, false); } - - MenuUtils.safeSetVisible(menu, R.id.share, !GeckoProfile.get(getContext()).inGuestMode()); } });