diff options
author | cyBerta <cyberta@riseup.net> | 2021-10-24 16:47:12 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-10-24 16:47:12 +0200 |
commit | 01e40b1a843326036425727355550dba8bd66335 (patch) | |
tree | 4aff1136220ab1ed1abed77d2999e53751335ccb /app/src/main/java/se/leap/bitmaskclient/eip | |
parent | 62d2bdacec6c54f4453f1ad20425e99254998e9a (diff) |
cancel tor and provider setup on pressing back button
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/eip')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java b/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java index 23fbdc0c..203885a1 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/EipSetupObserver.java @@ -368,8 +368,7 @@ public class EipSetupObserver extends BroadcastReceiver implements VpnStatus.Sta observedProfileFromVpnStatus = null; this.changingGateway.set(changingGateway); if (TorStatusObservable.getStatus() != OFF) { - Intent intent = new Intent(context, TorService.class); - context.stopService(intent); + TorStatusObservable.shutdownTor(context); } } |