Fixed Material theme light status bar when Adaptive color is on
This commit is contained in:
parent
6116b4714f
commit
904dd748cb
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
|
||||||
navigationBarColor = surfaceColor()
|
navigationBarColor = surfaceColor()
|
||||||
setTaskDescColor(paletteColor)
|
setTaskDescColor(paletteColor)
|
||||||
val isColorLight = paletteColor.isColorLight
|
val isColorLight = paletteColor.isColorLight
|
||||||
if (PreferenceUtil.isAdaptiveColor && (nowPlayingScreen == Normal || nowPlayingScreen == Flat)) {
|
if (PreferenceUtil.isAdaptiveColor && (nowPlayingScreen == Normal || nowPlayingScreen == Flat || nowPlayingScreen == Material)) {
|
||||||
setLightNavigationBar(true)
|
setLightNavigationBar(true)
|
||||||
setLightStatusBar(isColorLight)
|
setLightStatusBar(isColorLight)
|
||||||
} else if (nowPlayingScreen == Card || nowPlayingScreen == Blur || nowPlayingScreen == BlurCard) {
|
} else if (nowPlayingScreen == Card || nowPlayingScreen == Blur || nowPlayingScreen == BlurCard) {
|
||||||
|
|
|
@ -280,7 +280,7 @@ class PlayerAlbumCoverFragment : AbsMusicServiceFragment(R.layout.fragment_playe
|
||||||
setLRCViewColors(
|
setLRCViewColors(
|
||||||
when (PreferenceUtil.nowPlayingScreen) {
|
when (PreferenceUtil.nowPlayingScreen) {
|
||||||
Adaptive, Fit, Plain, Simple -> surfaceColor()
|
Adaptive, Fit, Plain, Simple -> surfaceColor()
|
||||||
Flat, Normal -> if (PreferenceUtil.isAdaptiveColor) {
|
Flat, Normal, Material -> if (PreferenceUtil.isAdaptiveColor) {
|
||||||
color.backgroundColor
|
color.backgroundColor
|
||||||
} else {
|
} else {
|
||||||
surfaceColor()
|
surfaceColor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue