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

Unified Diff: mobile/android/base/preferences/GeckoPreferences.java

Issue 29345390: Issue 3001 - FAQ settings item should lead to the Adblock Browser FAQ (Closed)
Patch Set: Created May 31, 2016, 9:56 a.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
« no previous file with comments | « no previous file | mobile/android/base/resources/xml/preferences_vendor.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mobile/android/base/preferences/GeckoPreferences.java
===================================================================
--- a/mobile/android/base/preferences/GeckoPreferences.java
+++ b/mobile/android/base/preferences/GeckoPreferences.java
@@ -905,25 +905,19 @@ OnSharedPreferenceChangeListener
preferences.removePreference(pref);
i--;
continue;
}
} else if (PREFS_HOMEPAGE.equals(key)) {
String setUrl = GeckoSharedPrefs.forProfile(getBaseContext()).getString(PREFS_HOMEPAGE, AboutPages.HOME);
setHomePageSummary(pref, setUrl);
pref.setOnPreferenceChangeListener(this);
- } else if (PREFS_FAQ_LINK.equals(key)) {
- // Format the FAQ link
- final String VERSION = AppConstants.MOZ_APP_VERSION;
- final String OS = AppConstants.OS_TARGET;
- final String LOCALE = Locales.getLanguageTag(Locale.getDefault());
-
- final String url = getResources().getString(R.string.faq_link, VERSION, OS, LOCALE);
- ((LinkPreference) pref).setUrl(url);
}
+ // Removed PREFS_FAQ_LINK condition so it won't override the FAQ url programatically
+ // See https://issues.adblockplus.org/ticket/3001
Felix Dahlke 2016/06/16 13:33:34 Do we actually have to remove this code? How I see
// Some Preference UI elements are not actually preferences,
// but they require a key to work correctly. For example,
// "Clear private data" requires a key for its state to be
// saved when the orientation changes. It uses the
// "android.not_a_preference.privacy.clear" key - which doesn't
// exist in Gecko - to satisfy this requirement.
if (isGeckoPref(key)) {
« no previous file with comments | « no previous file | mobile/android/base/resources/xml/preferences_vendor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld