summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-05-10 16:38:37 +0200
committercyBerta <cyberta@riseup.net>2019-05-10 16:38:37 +0200
commit3efba09efb4be74d21d9e8131fdb842255f2b82d (patch)
tree52635dbdb77fa0bd4e8e60450133b8b0a4b91838 /app/src/main/java/se
parentb910710aa5b2da9d8c535b635b752a7954d11de9 (diff)
remove dead code in start activity
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/StartActivity.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
index 6cf6b67b..d30b98a0 100644
--- a/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/StartActivity.java
@@ -54,12 +54,11 @@ public class StartActivity extends Activity{
public static final String TAG = StartActivity.class.getSimpleName();
@Retention(RetentionPolicy.SOURCE)
- @IntDef({FIRST, NORMAL, UPGRADE, DOWNGRADE})
+ @IntDef({FIRST, NORMAL, UPGRADE})
private @interface StartupMode {}
private static final int FIRST = 0;
private static final int NORMAL = 1;
private static final int UPGRADE = 2;
- private static final int DOWNGRADE = 3;
private int versionCode;
private int previousVersionCode;
@@ -87,10 +86,6 @@ public class StartActivity extends Activity{
executeUpgrade();
// TODO show donation dialog
break;
-
- case DOWNGRADE:
- // TODO think how and why this should happen and what todo
- break;
}
// initialize app necessities
@@ -128,11 +123,6 @@ public class StartActivity extends Activity{
Log.d(TAG, "UPGRADE");
return UPGRADE;
}
- // version has decreased -> downgrade
- if (versionCode < previousVersionCode) {
- Log.d(TAG, "DOWNGRADE");
- return DOWNGRADE;
- }
} catch (PackageManager.NameNotFoundException e) {
Log.d(TAG, "Splash screen didn't find any " + getPackageName() + " package");