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 69f575469..886ddf591 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 @@ -73,6 +73,9 @@ 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) return true