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

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

Issue 29346916: Issue 3220 - FAQ and Privacy Policy links redirect to English site only (Closed)
Patch Set: Created June 22, 2016, 12:31 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
Index: mobile/android/base/preferences/GeckoPreferences.java
===================================================================
--- a/mobile/android/base/preferences/GeckoPreferences.java
+++ b/mobile/android/base/preferences/GeckoPreferences.java
@@ -911,17 +911,18 @@ OnSharedPreferenceChangeListener
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);
+ // Changed FAQ link format. See https://issues.adblockplus.org/ticket/3220
+ final String url = getResources().getString(R.string.faq_link, LOCALE);
Felix Dahlke 2016/09/15 14:59:22 How I see it, you're just removing the VERSION and
diegocarloslima 2016/10/21 13:37:43 In order to not break the formatting when keeping
Felix Dahlke 2016/10/28 10:14:52 Hm, well if it's a position based format, that's t
diegocarloslima 2016/11/02 08:55:48 Acknowledged.
((LinkPreference) pref).setUrl(url);
}
// 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

Powered by Google App Engine
This is Rietveld