disable modifying the already played queue items

This commit is contained in:
Bnyro 2022-11-05 20:22:59 +01:00
parent 32822163e1
commit 2760257c26

View File

@ -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