From bb60b1647297a4dc08440b30c6b7ba972e4ef066 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 May 2019 14:28:38 +0200 Subject: [PATCH] Fixed upgrade --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index 43da067dd4..7f901fc864 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -237,8 +237,8 @@ public class ApplicationEx extends Application { static void upgrade(Context context) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - int version = prefs.getInt("version", 468); - if (version < BuildConfig.VERSION_CODE) { + int version = prefs.getInt("version", BuildConfig.VERSION_CODE); + if (version < 468) { Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE); SharedPreferences.Editor editor = prefs.edit();