From 0c27ecf949b5312f985cb39765cf5bfb3f367fc6 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 12 Jun 2020 08:40:31 +0200 Subject: [PATCH] Disable auto optimize on update --- 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 4909c3142b..4a92b545c4 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -278,7 +278,8 @@ public class ApplicationEx extends Application { } else if (version < 1181) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG) editor.remove("background_service"); - } + } else if (version < 1195) + editor.remove("auto_optimize"); if (version < BuildConfig.VERSION_CODE) editor.putInt("previous_version", version);