Swipe down to dismiss Mini player (Made Bottom Sheet hideable)

This commit is contained in:
Prathamesh More 2022-04-16 01:32:14 +05:30
parent 2119e0c754
commit b572fe1aee

View file

@ -122,6 +122,9 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
fromNotification = false fromNotification = false
} }
} }
STATE_HIDDEN -> {
MusicPlayerRemote.clearQueue()
}
else -> { else -> {
println("Do a flip") println("Do a flip")
} }
@ -156,7 +159,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
private fun setupBottomSheet() { private fun setupBottomSheet() {
bottomSheetBehavior = from(binding.slidingPanel) as RetroBottomSheetBehavior bottomSheetBehavior = from(binding.slidingPanel) as RetroBottomSheetBehavior
bottomSheetBehavior.addBottomSheetCallback(bottomSheetCallbackList) bottomSheetBehavior.addBottomSheetCallback(bottomSheetCallbackList)
bottomSheetBehavior.isHideable = false bottomSheetBehavior.isHideable = true
setMiniPlayerAlphaProgress(0F) setMiniPlayerAlphaProgress(0F)
} }