Fixed incorrect theme when md3 enabled
This commit is contained in:
parent
fe4283e3d7
commit
335d9000bf
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,7 @@ abstract class AbsThemeActivity : ATHToolbarActivity(), Runnable {
|
|||
toggleScreenOn()
|
||||
setDrawUnderNavigationBar()
|
||||
setLightNavigationAuto()
|
||||
setLightStatusbarAuto(surfaceColor())
|
||||
}
|
||||
|
||||
private fun updateTheme() {
|
||||
|
@ -61,7 +62,10 @@ abstract class AbsThemeActivity : ATHToolbarActivity(), Runnable {
|
|||
|
||||
// Apply dynamic colors to activity if enabled
|
||||
if (PreferenceUtil.materialYou) {
|
||||
DynamicColors.applyIfAvailable(this)
|
||||
DynamicColors.applyIfAvailable(
|
||||
this,
|
||||
com.google.android.material.R.style.ThemeOverlay_Material3_DynamicColors_DayNight
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue