summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2020-02-27 22:44:50 -0600
committercyberta <cyberta@riseup.net>2020-02-27 22:44:50 -0600
commitd41561376321d04ce585ac1f45221cb93446e55f (patch)
treef8ab5cf219fb613c47cf9a7e77d413d520132732 /app/src/main/java/se
parentc5d5494e0e0d3cb8bb9c97583af3205143f5dea1 (diff)
disable battery save mode while tethering is enabled
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java b/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
index 8ef237c6..103462cc 100644
--- a/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
+++ b/app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java
@@ -41,5 +41,9 @@ public class TetheringState implements Cloneable {
return isVpnWifiTetheringAllowed || isVpnUsbTetheringAllowed || isVpnBluetoothTetheringAllowed;
}
+ public boolean isVpnTetheringRunning() {
+ return tetherWifiVpn() || tetherUsbVpn() || tetherBluetoothVpn();
+ }
+
}