diff options
author | Fup Duck <fupduck@sacknagel.com> | 2018-01-11 17:59:16 +0100 |
---|---|---|
committer | Fup Duck <fupduck@sacknagel.com> | 2018-01-11 17:59:16 +0100 |
commit | 6bba6816b3329a24254c7904fd6e9422b50bfe26 (patch) | |
tree | 0bb21b417407aa47fe539f130b99d4fa8a7214f6 /app/src/main/java/se/leap/bitmaskclient/StartActivity.java | |
parent | 8b942c746b51410f334b7303699a5ac740513ae3 (diff) | |
parent | f3de2025db7bf73cdfdaaedd63aa00a1bf020d80 (diff) |
Merge remote-tracking branch '0xacab/0.9.8' into 8802_drawer
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/StartActivity.java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/StartActivity.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java index 856b104b..614c6b8d 100644 --- a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java @@ -48,6 +48,8 @@ public class StartActivity extends Activity { break; case FIRST: + storeAppVersion(); + // TODO start ProfileCreation & replace below code // (new Intent(getActivity(), ConfigurationWizard.class), Constants.REQUEST_CODE_SWITCH_PROVIDER); break; @@ -120,7 +122,7 @@ public class StartActivity extends Activity { } // ensure all upgrades have passed before storing new information - preferences.edit().putInt(Constants.PREFERENCES_APP_VERSION, versionCode).apply(); + storeAppVersion(); } /** @@ -132,4 +134,8 @@ public class StartActivity extends Activity { return previousVersionCode < featureVersionCode && versionCode >= featureVersionCode; } + private void storeAppVersion() { + preferences.edit().putInt(Constants.PREFERENCES_APP_VERSION, versionCode).apply(); + } + } |