From e6e734c8f998384883db17e9660eced8a4e85276 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 3 Nov 2021 21:03:39 +0100 Subject: [PATCH] allow customizing the primary and app icon color at Auto --- .../commons/activities/CustomizationActivity.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt index e8ae70a3b..5d060a096 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt @@ -242,9 +242,13 @@ class CustomizationActivity : BaseSimpleActivity() { val theme = predefinedThemes[curSelectedThemeId]!! curTextColor = getColor(theme.textColorId) curBackgroundColor = getColor(theme.backgroundColorId) - curPrimaryColor = getColor(theme.primaryColorId) - curAccentColor = getColor(R.color.color_primary) - curAppIconColor = getColor(theme.appIconColorId) + + if (curSelectedThemeId != THEME_AUTO) { + curPrimaryColor = getColor(theme.primaryColorId) + curAccentColor = getColor(R.color.color_primary) + curAppIconColor = getColor(theme.appIconColorId) + } + curNavigationBarColor = getThemeNavigationColor(curSelectedThemeId) setTheme(getThemeId(curPrimaryColor)) colorChanged()