mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Add a setting to disable Tor when running on battery
This commit is contained in:
@@ -380,6 +380,8 @@
|
||||
<!-- How and when Tor will connect after Automatic: E.g. Don't connect (in China) or Use Tor with bridges (in Belarus) -->
|
||||
<string name="tor_network_setting_summary">Automatic: %1$s (in %2$s)</string>
|
||||
<string name="tor_mobile_data_title">Use mobile data</string>
|
||||
<string name="tor_only_when_charging_title">Connect to Internet (Tor) only when charging</string>
|
||||
<string name="tor_only_when_charging_summary">Disables internet connection when device runs on battery</string>
|
||||
|
||||
<!-- Settings Security and Panic -->
|
||||
<string name="security_settings_title">Security</string>
|
||||
|
||||
@@ -57,6 +57,15 @@
|
||||
android:widgetLayout="@layout/preference_switch_compat"
|
||||
app:iconSpaceReserved="false"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="pref_key_tor_only_when_charging"
|
||||
android:persistent="false"
|
||||
android:title="@string/tor_only_when_charging_title"
|
||||
android:summary="@string/tor_only_when_charging_summary"
|
||||
android:widgetLayout="@layout/preference_switch_compat"
|
||||
app:iconSpaceReserved="false"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user