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: <https://dev.funkwhale.audio/funkwhale/funkwhale-android/-/merge_requests/343>
This commit is contained in:
Hugh Daschbach 2023-11-16 19:29:24 -08:00
parent 22a72d9e83
commit 2088e06a68
1 changed files with 3 additions and 1 deletions

View File

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