mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-02-01 06:31:02 +00:00
AMOLED + custom
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user