From d27af3b17d6636de8b2755090b6fe6329531f639 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 4 Nov 2021 16:45:54 +0100 Subject: remove unused UNKNOWN TorStatus state --- .../se/leap/bitmaskclient/providersetup/ProviderApiManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app/src/production') diff --git a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java index 6ca3e949..c60e21dc 100644 --- a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java +++ b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java @@ -57,7 +57,6 @@ import static se.leap.bitmaskclient.providersetup.ProviderAPI.ERRORS; import static se.leap.bitmaskclient.providersetup.ProviderSetupFailedDialog.DOWNLOAD_ERRORS.ERROR_CERTIFICATE_PINNING; import static se.leap.bitmaskclient.providersetup.ProviderSetupFailedDialog.DOWNLOAD_ERRORS.ERROR_CORRUPTED_PROVIDER_JSON; import static se.leap.bitmaskclient.tor.TorStatusObservable.TorStatus.OFF; -import static se.leap.bitmaskclient.tor.TorStatusObservable.TorStatus.UNKOWN; import static se.leap.bitmaskclient.tor.TorStatusObservable.getProxyPort; /** @@ -332,8 +331,7 @@ public class ProviderApiManager extends ProviderApiManagerBase { responseString.contains(ERRORS) && PreferenceHelper.getUseBridges(preferences) && EipStatus.getInstance().isDisconnected() && - (TorStatusObservable.getStatus() == OFF || - TorStatusObservable.getStatus() == UNKOWN) && + TorStatusObservable.getStatus() == OFF && startTorProxy() ) { return downloadWithCommercialCA(stringUrl, provider, 1); @@ -377,8 +375,7 @@ public class ProviderApiManager extends ProviderApiManagerBase { responseString.contains(ERRORS) && PreferenceHelper.getUseBridges(preferences) && EipStatus.getInstance().isDisconnected() && - (TorStatusObservable.getStatus() == OFF || - TorStatusObservable.getStatus() == UNKOWN) && + TorStatusObservable.getStatus() == OFF && startTorProxy() ) { return downloadFromUrlWithProviderCA(urlString, provider, 1); -- cgit v1.2.3