Dan Ballard pushed to branch tor-browser-128.8.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
b23a826c
by clairehurst at 2025-03-18T16:30:23+00:00
3 changed files:
- mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
- mobile/android/fenix/app/src/main/res/values/preference_keys.xml
- mobile/android/fenix/app/src/main/res/xml/preferences.xml
Changes:
| ... | ... | @@ -796,6 +796,17 @@ class SettingsFragment : PreferenceFragmentCompat(), UserInteractionHandler { |
| 796 | 796 | true
|
| 797 | 797 | }
|
| 798 | 798 | }
|
| 799 | + requirePreference<Preference>(R.string.pref_key_about_config_shortcut).apply {
|
|
| 800 | + isVisible = requireContext().settings().showSecretDebugMenuThisSession || Config.channel == ReleaseChannel.Debug
|
|
| 801 | + setOnPreferenceClickListener {
|
|
| 802 | + (requireActivity() as HomeActivity).openToBrowserAndLoad(
|
|
| 803 | + searchTermOrURL = "about:config",
|
|
| 804 | + from = BrowserDirection.FromSettings,
|
|
| 805 | + newTab = true,
|
|
| 806 | + )
|
|
| 807 | + true
|
|
| 808 | + }
|
|
| 809 | + }
|
|
| 799 | 810 | }
|
| 800 | 811 | |
| 801 | 812 | @VisibleForTesting
|
| ... | ... | @@ -415,6 +415,7 @@ |
| 415 | 415 | <string name="pref_key_tor_network_settings_bridge_config" translatable="false">pref_key_tor_network_settings_bridge_config</string>
|
| 416 | 416 | <string name="pref_key_tor_logs" translatable="false">pref_key_tor_logs</string>
|
| 417 | 417 | <string name="pref_key_use_html_connection_ui" translatable="false">pref_key_use_html_connection_ui</string> <!-- Changing the pref_key should reset it to off for users that had it enabled -->
|
| 418 | + <string name="pref_key_about_config_shortcut" translatable="false">pref_key_about_config_shortcut</string>
|
|
| 418 | 419 | <string name="pref_key_tor_network_settings_bridge_config_explanation" translatable="false">pref_key_tor_network_settings_bridge_config_explanation</string>
|
| 419 | 420 | <string name="pref_key_tor_network_settings_bridge_config_toggle" translatable="false">pref_key_tor_network_settings_bridge_config_toggle</string>
|
| 420 | 421 | <string name="pref_key_tor_network_settings_bridge_config_builtin_bridge_obfs4" translatable="false">pref_key_tor_network_settings_bridge_config_builtin_bridge_obfs4</string>
|
| ... | ... | @@ -194,6 +194,12 @@ |
| 194 | 194 | android:title="@string/preferences_tor_logs"
|
| 195 | 195 | android:summary="@string/preferences_tor_logs_description" />
|
| 196 | 196 | |
| 197 | + <Preference
|
|
| 198 | + android:key="@string/pref_key_about_config_shortcut"
|
|
| 199 | + app:iconSpaceReserved="false"
|
|
| 200 | + android:title="about:config"/>
|
|
| 201 | + |
|
| 202 | + |
|
| 197 | 203 | <!-- Auto connect -->
|
| 198 | 204 | |
| 199 | 205 | <!-- Tor Logs -->
|