From 1e261420d7c9a6e3c9aa97573edf8949459a7cbd Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 7 Jan 2023 19:15:31 +0100 Subject: [PATCH] Allow modifying the queue without restrictions --- .../java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt index 2f728121d..2685b9b0b 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt @@ -89,11 +89,8 @@ class PlayingQueueSheet : ExpandedBottomSheet() { val from = viewHolder.absoluteAdapterPosition val to = target.absoluteAdapterPosition - val currentPosition = PlayingQueue.currentIndex() - if (to <= currentPosition) return false - - adapter.notifyItemMoved(from, to) PlayingQueue.move(from, to) + adapter.notifyItemMoved(from, to) return true }