summaryrefslogtreecommitdiff
path: root/app/src/production
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-10-23 00:59:46 +0200
committercyBerta <cyberta@riseup.net>2021-10-23 00:59:46 +0200
commit62d2bdacec6c54f4453f1ad20425e99254998e9a (patch)
tree747403fdc550e54e6201fd464ccdc49d25bb5011 /app/src/production
parent1640f7bbfa53b84ebf539f027d5cc3c9ba441401 (diff)
rename usePluggableTransports prefrence to useBridges, start snowflake if useBridges is true
Diffstat (limited to 'app/src/production')
-rw-r--r--app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java4
1 files changed, 2 insertions, 2 deletions
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 3067c1bf..6ca3e949 100644
--- a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
+++ b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
@@ -330,7 +330,7 @@ public class ProviderApiManager extends ProviderApiManagerBase {
if (tries == 0 &&
responseString != null &&
responseString.contains(ERRORS) &&
- PreferenceHelper.useTor(preferences) &&
+ PreferenceHelper.getUseBridges(preferences) &&
EipStatus.getInstance().isDisconnected() &&
(TorStatusObservable.getStatus() == OFF ||
TorStatusObservable.getStatus() == UNKOWN) &&
@@ -375,7 +375,7 @@ public class ProviderApiManager extends ProviderApiManagerBase {
if (tries == 0 &&
responseString != null &&
responseString.contains(ERRORS) &&
- PreferenceHelper.useTor(preferences) &&
+ PreferenceHelper.getUseBridges(preferences) &&
EipStatus.getInstance().isDisconnected() &&
(TorStatusObservable.getStatus() == OFF ||
TorStatusObservable.getStatus() == UNKOWN) &&