From eae3c254ac21a3fb1c5bc85561151b1643277651 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 26 Aug 2020 10:25:50 +0200 Subject: [PATCH] Log upgrades --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index d582e71bf8..fd9fe65bff 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -158,7 +158,8 @@ public class ApplicationEx extends Application { static void upgrade(Context context) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); int version = prefs.getInt("version", BuildConfig.VERSION_CODE); - Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE); + if (version != BuildConfig.VERSION_CODE) + EntityLog.log(context, "Upgrading from " + version + " to " + BuildConfig.VERSION_CODE); SharedPreferences.Editor editor = prefs.edit();