Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/base/java/org/mozilla/gecko/BrowserApp.java

Issue 29657633: Issue 6188 - Add-ons option is being shown (Closed)
Patch Set: Created Jan. 5, 2018, 8:41 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
===================================================================
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -3712,17 +3712,18 @@ public class BrowserApp extends GeckoApp
if (SwitchBoard.isInExperiment(this, Experiments.TOP_ADDONS_MENU)) {
MenuUtils.safeSetVisible(aMenu, R.id.addons_top_level, true);
MenuUtils.safeSetVisible(aMenu, R.id.addons, false);
} else {
MenuUtils.safeSetVisible(aMenu, R.id.addons_top_level, false);
MenuUtils.safeSetVisible(aMenu, R.id.addons, true);
}
- if (!Restrictions.isAllowed(this, Restrictable.INSTALL_EXTENSION)) {
+ // Always hiding add-ons. See https://issues.adblockplus.org/ticket/6188
+ if (true) {
MenuUtils.safeSetVisible(aMenu, R.id.addons, false);
MenuUtils.safeSetVisible(aMenu, R.id.addons_top_level, false);
}
// Hide panel menu items if the panels themselves are hidden.
// If we don't know whether the panels are hidden, just show the menu items.
bookmarksList.setVisible(prefs.getBoolean(HomeConfig.PREF_KEY_BOOKMARKS_PANEL_ENABLED, true));
historyList.setVisible(prefs.getBoolean(HomeConfig.PREF_KEY_HISTORY_PANEL_ENABLED, true));

Powered by Google App Engine
This is Rietveld