Swipe down to dismiss Mini player (Made Bottom Sheet hideable)
This commit is contained in:
parent
2119e0c754
commit
b572fe1aee
1 changed files with 4 additions and 1 deletions
|
@ -122,6 +122,9 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
|
|||
fromNotification = false
|
||||
}
|
||||
}
|
||||
STATE_HIDDEN -> {
|
||||
MusicPlayerRemote.clearQueue()
|
||||
}
|
||||
else -> {
|
||||
println("Do a flip")
|
||||
}
|
||||
|
@ -156,7 +159,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
|
|||
private fun setupBottomSheet() {
|
||||
bottomSheetBehavior = from(binding.slidingPanel) as RetroBottomSheetBehavior
|
||||
bottomSheetBehavior.addBottomSheetCallback(bottomSheetCallbackList)
|
||||
bottomSheetBehavior.isHideable = false
|
||||
bottomSheetBehavior.isHideable = true
|
||||
setMiniPlayerAlphaProgress(0F)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue