Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- | 1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- |
2 * This Source Code Form is subject to the terms of the Mozilla Public | 2 * This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 package org.mozilla.gecko.preferences; | 6 package org.mozilla.gecko.preferences; |
7 | 7 |
8 import org.mozilla.gecko.AboutPages; | 8 import org.mozilla.gecko.AboutPages; |
9 import org.mozilla.gecko.AdjustConstants; | 9 import org.mozilla.gecko.AdjustConstants; |
10 import org.mozilla.gecko.AppConstants; | 10 import org.mozilla.gecko.AppConstants; |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 } else if (PREFS_HOMEPAGE.equals(key)) { | 909 } else if (PREFS_HOMEPAGE.equals(key)) { |
910 String setUrl = GeckoSharedPrefs.forProfile(getBaseContext() ).getString(PREFS_HOMEPAGE, AboutPages.HOME); | 910 String setUrl = GeckoSharedPrefs.forProfile(getBaseContext() ).getString(PREFS_HOMEPAGE, AboutPages.HOME); |
911 setHomePageSummary(pref, setUrl); | 911 setHomePageSummary(pref, setUrl); |
912 pref.setOnPreferenceChangeListener(this); | 912 pref.setOnPreferenceChangeListener(this); |
913 } else if (PREFS_FAQ_LINK.equals(key)) { | 913 } else if (PREFS_FAQ_LINK.equals(key)) { |
914 // Format the FAQ link | 914 // Format the FAQ link |
915 final String VERSION = AppConstants.MOZ_APP_VERSION; | 915 final String VERSION = AppConstants.MOZ_APP_VERSION; |
916 final String OS = AppConstants.OS_TARGET; | 916 final String OS = AppConstants.OS_TARGET; |
917 final String LOCALE = Locales.getLanguageTag(Locale.getDefau lt()); | 917 final String LOCALE = Locales.getLanguageTag(Locale.getDefau lt()); |
918 | 918 |
919 final String url = getResources().getString(R.string.faq_lin k, VERSION, OS, LOCALE); | 919 // Changed FAQ link format. See https://issues.adblockplus.o rg/ticket/3220 |
920 final String url = getResources().getString(R.string.faq_lin k, 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.
| |
920 ((LinkPreference) pref).setUrl(url); | 921 ((LinkPreference) pref).setUrl(url); |
921 } | 922 } |
922 | 923 |
923 // Some Preference UI elements are not actually preferences, | 924 // Some Preference UI elements are not actually preferences, |
924 // but they require a key to work correctly. For example, | 925 // but they require a key to work correctly. For example, |
925 // "Clear private data" requires a key for its state to be | 926 // "Clear private data" requires a key for its state to be |
926 // saved when the orientation changes. It uses the | 927 // saved when the orientation changes. It uses the |
927 // "android.not_a_preference.privacy.clear" key - which doesn't | 928 // "android.not_a_preference.privacy.clear" key - which doesn't |
928 // exist in Gecko - to satisfy this requirement. | 929 // exist in Gecko - to satisfy this requirement. |
929 if (isGeckoPref(key)) { | 930 if (isGeckoPref(key)) { |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1566 intent.putExtra("resource", resource); | 1567 intent.putExtra("resource", resource); |
1567 } else { | 1568 } else { |
1568 intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, GeckoPrefere nceFragment.class.getName()); | 1569 intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, GeckoPrefere nceFragment.class.getName()); |
1569 | 1570 |
1570 Bundle fragmentArgs = new Bundle(); | 1571 Bundle fragmentArgs = new Bundle(); |
1571 fragmentArgs.putString("resource", resource); | 1572 fragmentArgs.putString("resource", resource); |
1572 intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fr agmentArgs); | 1573 intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fr agmentArgs); |
1573 } | 1574 } |
1574 } | 1575 } |
1575 } | 1576 } |
OLD | NEW |