From 38b9fe301721250c86448504a9b5eb8a9e9dc40d Mon Sep 17 00:00:00 2001 From: buzzcola3 Date: Sun, 13 Apr 2025 20:36:15 +0200 Subject: [PATCH] Fix prevQueueItem always returning the item from _queue, even when _queueShuffled is active --- app/src/main/java/com/futo/platformplayer/states/StatePlayer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/futo/platformplayer/states/StatePlayer.kt b/app/src/main/java/com/futo/platformplayer/states/StatePlayer.kt index b8368ea5..15c91025 100644 --- a/app/src/main/java/com/futo/platformplayer/states/StatePlayer.kt +++ b/app/src/main/java/com/futo/platformplayer/states/StatePlayer.kt @@ -598,7 +598,7 @@ class StatePlayer { } if(_queuePosition < _queue.size) { - return _queue[_queuePosition]; + return getCurrentQueueItem(); } } return null;