Fixed incorrect theme when md3 enabled

This commit is contained in:
Prathamesh More 2021-10-29 20:36:07 +05:30
parent fe4283e3d7
commit 335d9000bf

View file

@ -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
)
} }
} }