From 035dd848ca9b583ff03991b449c943ef86b896ee Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 15 Mar 2020 02:09:27 +0100 Subject: [PATCH] Never follow system theme on Android versions prior to Android 9 --- app/ui/src/main/java/com/fsck/k9/ui/ThemeManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/src/main/java/com/fsck/k9/ui/ThemeManager.kt b/app/ui/src/main/java/com/fsck/k9/ui/ThemeManager.kt index 5b3c67cb0..e6962b57c 100644 --- a/app/ui/src/main/java/com/fsck/k9/ui/ThemeManager.kt +++ b/app/ui/src/main/java/com/fsck/k9/ui/ThemeManager.kt @@ -14,7 +14,7 @@ class ThemeManager(private val context: Context) { get() = when (K9.appTheme) { AppTheme.LIGHT -> Theme.LIGHT AppTheme.DARK -> Theme.DARK - AppTheme.FOLLOW_SYSTEM -> getSystemTheme() + AppTheme.FOLLOW_SYSTEM -> if (Build.VERSION.SDK_INT < 28) Theme.LIGHT else getSystemTheme() } val messageViewTheme: Theme