summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-01 17:13:26 +0100
committerParménides GV <parmegv@sdf.org>2014-12-01 17:13:26 +0100
commitba682a453c4f188d57562d764635f1db7e2e1cab (patch)
treea9e73536efc9b89a66247a252758f31d64ec00c1 /app/src/main/java
parent2fc73d6bfe8d86464571258f008d8bcf6db0cc2d (diff)
Refresh gateways if the list is empty while starting eip.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java1
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EIP.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
index b896c00f..592a9552 100644
--- a/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/EipServiceFragment.java
@@ -219,7 +219,6 @@ public class EipServiceFragment extends Fragment implements Observer, CompoundBu
@Override
public void update (Observable observable, Object data) {
- Log.d(TAG, "handleNewState?");
if(observable instanceof EipStatus) {
eip_status = (EipStatus) observable;
final EipStatus eip_status = (EipStatus) observable;
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 5169ef62..a67eaccd 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
@@ -116,6 +116,8 @@ public final class EIP extends IntentService {
* It also sets up early routes.
*/
private void startEIP() {
+ if(gateways.isEmpty())
+ updateEIPService();
GatewaySelector gateway_selector = new GatewaySelector(gateways);
activeGateway = gateway_selector.select();
if(activeGateway != null && activeGateway.getProfile() != null) {