Fixed BottomSheet height when Peek now playing theme is selected or was selected before changing to other theme
This commit is contained in:
parent
46f713e688
commit
2ef5a5903d
1 changed files with 1 additions and 1 deletions
|
@ -202,13 +202,13 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(),
|
||||||
miniPlayerFragment?.setUpButtons()
|
miniPlayerFragment?.setUpButtons()
|
||||||
}
|
}
|
||||||
NOW_PLAYING_SCREEN_ID -> {
|
NOW_PLAYING_SCREEN_ID -> {
|
||||||
|
chooseFragmentForTheme()
|
||||||
binding.slidingPanel.updateLayoutParams<ViewGroup.LayoutParams> {
|
binding.slidingPanel.updateLayoutParams<ViewGroup.LayoutParams> {
|
||||||
height = if (nowPlayingScreen != Peek) {
|
height = if (nowPlayingScreen != Peek) {
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT
|
ViewGroup.LayoutParams.MATCH_PARENT
|
||||||
} else {
|
} else {
|
||||||
ViewGroup.LayoutParams.WRAP_CONTENT
|
ViewGroup.LayoutParams.WRAP_CONTENT
|
||||||
}
|
}
|
||||||
chooseFragmentForTheme()
|
|
||||||
onServiceConnected()
|
onServiceConnected()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue