diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-08 00:54:24 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-08 00:54:24 +0100 |
commit | 0b80fad26c91e5aa0faf8bc0132184eeeb7883b0 (patch) | |
tree | 7e11500369176c54a122f11e857840f9c65cc379 /app/src/main/java/se | |
parent | 62c28b219a85aa3074356e1e49e92e30c1166c3b (diff) |
revert restriction to be connected to wifi in order to use snowflake/tor fallback
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java | 5 | ||||
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java index 335d70b2..c45d7ae9 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java @@ -155,11 +155,6 @@ public class ProviderAPI extends JobIntentService implements ProviderApiManagerB } @Override - public boolean isConnectedToWifi() { - return NetworkUtils.isConnectedToWifi(getApplicationContext()); - } - - @Override public void startTorService() throws InterruptedException, IllegalStateException { initTorServiceConnection(this); Intent torServiceIntent = new Intent(this, TorService.class); diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java index 0c09aec1..7872fb32 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java @@ -153,7 +153,6 @@ public abstract class ProviderApiManagerBase { void startTorService() throws InterruptedException, IllegalStateException; void stopTorService(); int getTorHttpTunnelPort(); - boolean isConnectedToWifi(); } private final ProviderApiServiceCallback serviceCallback; @@ -305,8 +304,7 @@ public abstract class ProviderApiManagerBase { protected boolean startTorProxy() throws InterruptedException, IllegalStateException, TimeoutException { if (EipStatus.getInstance().isDisconnected() && - PreferenceHelper.getUseTor(preferences) && - serviceCallback.isConnectedToWifi() + PreferenceHelper.getUseTor(preferences) ) { serviceCallback.startTorService(); waitForTorCircuits(); |