AMOLED + custom

This commit is contained in:
Finnley Somdahl 2023-11-26 22:05:27 -06:00
parent f01377f0b1
commit 32f918450a
3 changed files with 9 additions and 4 deletions

View file

@ -68,7 +68,6 @@ class ThemeManager(private val context: Context) {
needMaterial = false
}
// Set the theme overlay based on conditions
if (useOLED) {
builder.setThemeOverlay(R.style.AppTheme_Amoled)
}
@ -80,6 +79,14 @@ class ThemeManager(private val context: Context) {
// Apply the dynamic colors to the activity
val activity = context as Activity
DynamicColors.applyToActivityIfAvailable(activity, options)
if (useOLED) {
val options2 = DynamicColorsOptions.Builder()
.setThemeOverlay(R.style.AppTheme_Amoled)
.build()
DynamicColors.applyToActivityIfAvailable(activity, options2)
}
return false
}