Skip to content
Snippets Groups Projects
Commit 94e2940c authored by clairehurst's avatar clairehurst Committed by Pier Angelo Vendrame
Browse files

fixup! TB 40041 [android]: Implement Tor Network Settings

parent bd4a8283
Branches
Tags
1 merge request!1500TB 43415: Rebased onto 134.0a1
......@@ -808,6 +808,17 @@ class SettingsFragment : PreferenceFragmentCompat() {
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
......
......@@ -443,6 +443,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>
......
......@@ -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 -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment