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()
|
toggleScreenOn()
|
||||||
setDrawUnderNavigationBar()
|
setDrawUnderNavigationBar()
|
||||||
setLightNavigationAuto()
|
setLightNavigationAuto()
|
||||||
|
setLightStatusbarAuto(surfaceColor())
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateTheme() {
|
private fun updateTheme() {
|
||||||
|
@ -61,7 +62,10 @@ abstract class AbsThemeActivity : ATHToolbarActivity(), Runnable {
|
||||||
|
|
||||||
// Apply dynamic colors to activity if enabled
|
// Apply dynamic colors to activity if enabled
|
||||||
if (PreferenceUtil.materialYou) {
|
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