From 38cb6bae306acf8d3e89da0552c12a3e05e34ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Mart=C3=AD?= Date: Mon, 11 Nov 2024 12:29:49 +0100 Subject: [PATCH] Fix invalid status bar colour theme --- .../infrastructure/activity/ConfigurationActivity.kt | 4 ++-- app/src/main/res/values/styles.xml | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/values/styles.xml diff --git a/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt b/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt index 18ab2383..b8dd507a 100644 --- a/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt +++ b/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt @@ -54,8 +54,8 @@ class ConfigurationActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { setTheme( when (applicationContext.isDarkThemeEnabled()) { - true -> androidx.appcompat.R.style.Theme_AppCompat - else -> androidx.appcompat.R.style.Theme_AppCompat_DayNight + true -> R.style.Theme_AppCompat_DarkTheme + else -> R.style.Theme_AppCompat_LightTheme } ) diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..e0a48f53 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + +