Merge pull request #1772 from Bnyro/master

disable modifying the already played queue items
This commit is contained in:
Bnyro 2022-11-05 20:23:17 +01:00 committed by GitHub
commit d331bc161c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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