From 5870156057b9d1f6f0bd8c22824b7e0fd8ec300b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Thu, 13 Nov 2014 01:16:36 +0100 Subject: Delete all vpn profiles if updating them. --- app/src/main/java/se/leap/bitmaskclient/EIP.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/EIP.java b/app/src/main/java/se/leap/bitmaskclient/EIP.java index 7f15b944..00a0afb0 100644 --- a/app/src/main/java/se/leap/bitmaskclient/EIP.java +++ b/app/src/main/java/se/leap/bitmaskclient/EIP.java @@ -94,7 +94,6 @@ public final class EIP extends IntentService { private static ResultReceiver mReceiver; private static boolean mBound = false; - private static int parsedEipSerial; private static JSONObject eipDefinition = null; private static OVPNGateway activeGateway = null; @@ -323,16 +322,12 @@ public final class EIP extends IntentService { if(eip_definition_string.isEmpty() == false) { eipDefinition = new JSONObject(eip_definition_string); } - parsedEipSerial = preferences.getInt(PARSED_SERIAL, 0); + deleteAllVpnProfiles(); + updateGateways(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } - if(parsedEipSerial == 0) { - deleteAllVpnProfiles(); - } - if (eipDefinition != null && eipDefinition.optInt("serial") >= parsedEipSerial) - updateGateways(); } private void deleteAllVpnProfiles() { -- cgit v1.2.3