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

@@ -16,6 +16,7 @@ public interface TorConstants {
String PREF_TOR_NETWORK = "network2";
String PREF_TOR_PORT = "port";
String PREF_TOR_MOBILE = "useMobileData";
String PREF_TOR_ONLY_WHEN_CHARGING = "onlyWhenCharging";
int PREF_TOR_NETWORK_AUTOMATIC = 0;
int PREF_TOR_NETWORK_WITHOUT_BRIDGES = 1;