diff --git a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java index 6d28c9986692..3a047180e3e5 100644 --- a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java +++ b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java @@ -133,18 +133,15 @@ OnSharedPreferenceChangeListener private static final String PREFS_TRACKING_PROTECTION_PB = "privacy.trackingprotection.pbmode.enabled"; public static final String PREFS_VOICE_INPUT_ENABLED = NON_PREF_PREFIX + "voice_input_enabled"; public static final String PREFS_QRCODE_ENABLED = NON_PREF_PREFIX + "qrcode_enabled"; - private static final String PREFS_ADVANCED = NON_PREF_PREFIX + "advanced.enabled"; - private static final String PREFS_ACCESSIBILITY = NON_PREF_PREFIX + "accessibility.enabled"; - private static final String PREFS_CUSTOMIZE_HOME = NON_PREF_PREFIX + "customize_home"; private static final String PREFS_TRACKING_PROTECTION_PRIVATE_BROWSING = "privacy.trackingprotection.pbmode.enabled"; private static final String PREFS_TRACKING_PROTECTION_LEARN_MORE = NON_PREF_PREFIX + "trackingprotection.learn_more"; private static final String PREFS_CLEAR_PRIVATE_DATA = NON_PREF_PREFIX + "privacy.clear"; private static final String PREFS_CLEAR_PRIVATE_DATA_EXIT = NON_PREF_PREFIX + "history.clear_on_exit"; private static final String PREFS_SCREEN_ADVANCED = NON_PREF_PREFIX + "advanced_screen"; - private static final String PREFS_CATEGORY_HOMEPAGE = NON_PREF_PREFIX + "category_homepage"; public static final String PREFS_HOMEPAGE = NON_PREF_PREFIX + "homepage"; public static final String PREFS_HISTORY_SAVED_SEARCH = NON_PREF_PREFIX + "search.search_history.enabled"; private static final String PREFS_FAQ_LINK = NON_PREF_PREFIX + "faq.link"; + private static final String PREFS_FEEDBACK_LINK = NON_PREF_PREFIX + "feedback.link"; private static final String ACTION_STUMBLER_UPLOAD_PREF = AppConstants.ANDROID_PACKAGE_NAME + ".STUMBLER_PREF"; @@ -852,6 +849,18 @@ OnSharedPreferenceChangeListener final String url = getResources().getString(R.string.faq_link, VERSION, OS, LOCALE); ((LinkPreference) pref).setUrl(url); + } else if (PREFS_FEEDBACK_LINK.equals(key)) { + PrefsHelper.getPref("app.feedbackURL", new PrefsHelper.PrefHandlerBase() { + @Override + public void prefValue(String prefName, final String value) { + ThreadUtils.postToUiThread(new Runnable() { + @Override + public void run() { + ((LinkPreference) pref).setUrl(value); + } + }); + } + }); } // Some Preference UI elements are not actually preferences, diff --git a/mobile/android/base/resources/xml/preferences_vendor.xml b/mobile/android/base/resources/xml/preferences_vendor.xml index e44cc4e98cca..38eba9d303c6 100644 --- a/mobile/android/base/resources/xml/preferences_vendor.xml +++ b/mobile/android/base/resources/xml/preferences_vendor.xml @@ -19,7 +19,6 @@ + android:persistent="false"/>