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()
|
||||
}
|
||||
NOW_PLAYING_SCREEN_ID -> {
|
||||
chooseFragmentForTheme()
|
||||
binding.slidingPanel.updateLayoutParams<ViewGroup.LayoutParams> {
|
||||
height = if (nowPlayingScreen != Peek) {
|
||||
ViewGroup.LayoutParams.MATCH_PARENT
|
||||
} else {
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
}
|
||||
chooseFragmentForTheme()
|
||||
onServiceConnected()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue