From 69e6d52fcf116ca9215b683371f5b39d6a56a1f2 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Fri, 9 Dec 2022 14:42:11 +0100 Subject: [PATCH] Resume playback only after seeking at the tapped queued song --- .../main/kotlin/it/vfsfitvnm/vimusic/ui/screens/player/Queue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/player/Queue.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/player/Queue.kt index 138d985..912bcf1 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/player/Queue.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/player/Queue.kt @@ -273,8 +273,8 @@ fun Queue( player.play() } } else { - player.playWhenReady = true player.seekToDefaultPosition(window.firstPeriodIndex) + player.playWhenReady = true } } )