From 2088e06a683502e7567e28f15733762f097d4f64 Mon Sep 17 00:00:00 2001 From: Hugh Daschbach Date: Thu, 16 Nov 2023 19:29:24 -0800 Subject: [PATCH] Do not close NowPlayingBottomSheet between tracks. If the user opens the NowPlayingBottomSheet whilst playing a non empty queue, leave the BottomSheet open at the end of the playing track. Part-of: --- .../java/audio/funkwhale/ffa/views/NowPlayingBottomSheet.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/audio/funkwhale/ffa/views/NowPlayingBottomSheet.kt b/app/src/main/java/audio/funkwhale/ffa/views/NowPlayingBottomSheet.kt index 436de6a..b77ea8d 100644 --- a/app/src/main/java/audio/funkwhale/ffa/views/NowPlayingBottomSheet.kt +++ b/app/src/main/java/audio/funkwhale/ffa/views/NowPlayingBottomSheet.kt @@ -74,7 +74,9 @@ class NowPlayingBottomSheet @JvmOverloads constructor( override fun show() { behavior.isHideable = false - close() + if (behavior.state == BottomSheetBehavior.STATE_HIDDEN) { + close() + } } override fun hide() {