Merge pull request #4611 from k9mail/fix_theme_issue

Never follow system theme on Android versions prior to Android 9
This commit is contained in:
cketti 2020-03-15 17:08:52 +01:00 committed by GitHub
commit e461f734eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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