The previous approach had the problem, that styles were not picked up correctly in the Fragment. This was notable especially with the colorPrimary, which did not appear in the overscroll effect.
Before
After
Code changes
applyStyle (with force = false) is now in use, to only merge our custom mal attributes in, but leave the rest of the theme as it was.
Cleanups for the style itself, properly inherting from Theme.Mal theme. windowActionBar and windowNoTitle were removed, because they are already set in the parent Theme.AppCompat.Light.NoActionBar.
The previous approach had the problem, that styles were not picked up correctly in the
Fragment
. This was notable especially with thecolorPrimary
, which did not appear in the overscroll effect.Code changes
applyStyle
(withforce
=false
) is now in use, to only merge our custommal
attributes in, but leave the rest of the theme as it was.Theme.Mal
theme.windowActionBar
andwindowNoTitle
were removed, because they are already set in the parentTheme.AppCompat.Light.NoActionBar
.