From 222db00efac3166afe377442fbca2387e151998c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 3 Oct 2023 11:52:15 -0700 Subject: [PATCH] Fix theming --- app/src/main/java/gallery/memories/MainActivity.kt | 3 +-- app/src/main/res/values/themes.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/gallery/memories/MainActivity.kt b/app/src/main/java/gallery/memories/MainActivity.kt index 427e4183..4d3b13e8 100644 --- a/app/src/main/java/gallery/memories/MainActivity.kt +++ b/app/src/main/java/gallery/memories/MainActivity.kt @@ -303,8 +303,7 @@ class MainActivity : AppCompatActivity() { fun applyTheme(color: String?, isDark: Boolean) { if (color == null) return - // Set dark mode - setTheme(if (isDark) android.R.style.Theme_Black else android.R.style.Theme_Light) + // Set system bars if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { val appearance = WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS or WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index abb82cfb..b10c0df9 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,6 +1,6 @@ -