From 4b96f6830fbd259330ec93ca4611d9b75f2e230d Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 30 Jun 2020 09:48:42 +0200 Subject: [PATCH] Upgrade: disabled text styles when monospaced enabled --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index 4a92b545c4..04a4cf9a5b 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -280,6 +280,11 @@ public class ApplicationEx extends Application { editor.remove("background_service"); } else if (version < 1195) editor.remove("auto_optimize"); + else if (version < 1229) { + boolean monospaced = prefs.getBoolean("monospaced", false); + if (monospaced && !BuildConfig.DEBUG) + editor.putBoolean("text_font", false); + } if (version < BuildConfig.VERSION_CODE) editor.putInt("previous_version", version);