Fixed BottomSheet height when Peek now playing theme is selected or was selected before changing to other theme

This commit is contained in:
Prathamesh More 2022-06-06 17:30:54 +05:30
parent 46f713e688
commit 2ef5a5903d

View file

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