Fixed incorrect theme when md3 enabled

main
Prathamesh More 2021-10-29 20:36:07 +05:30
parent fe4283e3d7
commit 335d9000bf
1 changed files with 5 additions and 1 deletions

View File

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