AMOLED + custom
This commit is contained in:
parent
f01377f0b1
commit
32f918450a
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue