summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-19 12:03:49 +0100
committercyBerta <cyberta@riseup.net>2018-02-19 12:03:49 +0100
commite4303be947a568f44829e2456c49dd7d979a2647 (patch)
tree90367b08e535f14de3af130354193c93dbeb91bf /app/src/main/java/se/leap
parentfd0ea99e4483ae921485f20e1023df55d337f2e9 (diff)
fix gateway selection
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EIP.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
index cbce1a81..5cf180d3 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
@@ -221,6 +221,9 @@ public final class EIP extends IntentService {
private GatewaysManager gatewaysFromPreferences() {
GatewaysManager gatewaysManager = new GatewaysManager(this, preferences);
+ //TODO: THIS IS A QUICK FIX - it deletes all profiles in ProfileManager, thus it's possible
+ // to add all gateways from prefs without duplicates, but this should be refactored.
+ gatewaysManager.clearGatewaysAndProfiles();
gatewaysManager.fromEipServiceJson(eipDefinitionFromPreferences());
return gatewaysManager;
}