summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-08-19 19:43:46 +0200
committerParménides GV <parmegv@sdf.org>2014-08-19 19:43:46 +0200
commitc1d13ccd8f78601142a33273093e1b3cadaead58 (patch)
tree9c967c86c7e634d9b5958bd7526426a3e0793545 /app/src/main/java/se/leap/bitmaskclient/Dashboard.java
parentc2de5af5af4e7554f6cded689e99d4c54e9fe8e7 (diff)
Rebuild vpn profiles if upgraded to versionCode 91
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/Dashboard.java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/Dashboard.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
index 74b6f9af..761afc0a 100644
--- a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
+++ b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
@@ -105,17 +105,17 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
int versionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
int lastDetectedVersion = preferences.getInt(APP_VERSION, 0);
preferences.edit().putInt(APP_VERSION, versionCode);
- if(lastDetectedVersion != 0) {
- switch(versionCode) {
- case 90: // 0.6.0
- if(!preferences.getString(EIP.KEY, "").isEmpty()) {
- Intent removeVpnProfiles = new Intent(getApplicationContext(), EIP.class);
- removeVpnProfiles.setAction(EIP.ACTION_REMOVE_PROFILES);
- startService(removeVpnProfiles);
- }
+ Log.d("Dashboard", "detected version code: " + versionCode);
+ Log.d("Dashboard", "last detected version code: " + lastDetectedVersion);
+
+ switch(versionCode) {
+ case 91: // 0.6.0 without Bug #5999
+ if(!preferences.getString(EIP.KEY, "").isEmpty()) {
+ Intent rebuildVpnProfiles = new Intent(getApplicationContext(), EIP.class);
+ rebuildVpnProfiles.setAction(EIP.ACTION_REBUILD_PROFILES);
+ startService(rebuildVpnProfiles);
}
-
- }
+ }
} catch (NameNotFoundException e) {
}
}