Add setting to override location-based disabling of Tor.

This commit is contained in:
akwizgran
2018-08-01 11:20:00 +01:00
parent d8ce1d75ca
commit 53762e7c93
5 changed files with 57 additions and 34 deletions

View File

@@ -348,6 +348,8 @@
<string name="tor_network_setting_never">Never</string>
<string name="tor_network_setting_wifi">Only when using Wi-Fi</string>
<string name="tor_network_setting_always">When using Wi-Fi or mobile data</string>
<string name="tor_location_setting_title">Disable Tor based on location</string>
<string name="tor_location_setting_hint">Disable Tor in countries where it is likely to be blocked</string>
<!-- Settings Security and Panic -->
<string name="security_settings_title">Security</string>

View File

@@ -44,6 +44,13 @@
android:summary="%s"
android:title="@string/tor_network_setting"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_tor_location"
android:persistent="false"
android:summary="@string/tor_location_setting_hint"
android:title="@string/tor_location_setting_title"/>
</PreferenceCategory>
<PreferenceCategory