Fixed mini player becoming visible while collapsing BottomSheet

This commit is contained in:
Prathamesh More 2021-09-27 21:03:01 +05:30
parent 4d6f75031a
commit 61074305ec
3 changed files with 18 additions and 7 deletions

View file

@ -163,12 +163,10 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
fun collapsePanel() {
bottomSheetBehavior.state = STATE_COLLAPSED
setMiniPlayerAlphaProgress(0f)
}
fun expandPanel() {
bottomSheetBehavior.state = STATE_EXPANDED
setMiniPlayerAlphaProgress(1f)
}
private fun setMiniPlayerAlphaProgress(progress: Float) {
@ -315,6 +313,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
libraryViewModel.setFabMargin(heightOfBar - RetroUtil.getNavigationBarHeight())
}
}
bottomSheetBehavior.setAllowDragging(true)
}
}