Add a setting to disable Tor when running on battery

This commit is contained in:
Torsten Grote
2019-02-05 13:13:16 -02:00
parent e964dae64b
commit 75c37a258e
6 changed files with 49 additions and 10 deletions

View File

@@ -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