From d41561376321d04ce585ac1f45221cb93446e55f Mon Sep 17 00:00:00 2001 From: cyberta Date: Thu, 27 Feb 2020 22:44:50 -0600 Subject: disable battery save mode while tethering is enabled --- app/src/main/java/se/leap/bitmaskclient/tethering/TetheringState.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/se') 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(); + } + } -- cgit v1.2.3