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
fixup! TB 40041 [android]: Implement Tor Network Settings

- - - - -


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:

=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
=====================================
@@ -796,6 +796,17 @@ class SettingsFragment : PreferenceFragmentCompat(), 
UserInteractionHandler {
                 true
             }
         }
+        
requirePreference<Preference>(R.string.pref_key_about_config_shortcut).apply {
+            isVisible = 
requireContext().settings().showSecretDebugMenuThisSession || Config.channel == 
ReleaseChannel.Debug
+            setOnPreferenceClickListener {
+                (requireActivity() as HomeActivity).openToBrowserAndLoad(
+                    searchTermOrURL = "about:config",
+                    from = BrowserDirection.FromSettings,
+                    newTab = true,
+                )
+                true
+            }
+        }
     }
 
     @VisibleForTesting


=====================================
mobile/android/fenix/app/src/main/res/values/preference_keys.xml
=====================================
@@ -415,6 +415,7 @@
     <string name="pref_key_tor_network_settings_bridge_config" 
translatable="false">pref_key_tor_network_settings_bridge_config</string>
     <string name="pref_key_tor_logs" 
translatable="false">pref_key_tor_logs</string>
     <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   -->
+    <string name="pref_key_about_config_shortcut" 
translatable="false">pref_key_about_config_shortcut</string>
     <string name="pref_key_tor_network_settings_bridge_config_explanation" 
translatable="false">pref_key_tor_network_settings_bridge_config_explanation</string>
     <string name="pref_key_tor_network_settings_bridge_config_toggle" 
translatable="false">pref_key_tor_network_settings_bridge_config_toggle</string>
     <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>


=====================================
mobile/android/fenix/app/src/main/res/xml/preferences.xml
=====================================
@@ -194,6 +194,12 @@
             android:title="@string/preferences_tor_logs"
             android:summary="@string/preferences_tor_logs_description" />
 
+        <Preference
+            android:key="@string/pref_key_about_config_shortcut"
+            app:iconSpaceReserved="false"
+            android:title="about:config"/>
+
+
         <!-- Auto connect -->
 
         <!-- Tor Logs -->



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b23a826c571b48aca858f999c81f70b2b312934b

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b23a826c571b48aca858f999c81f70b2b312934b
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to