mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #2625 from Bnyro/master
Allow modifying the queue without restrictions
This commit is contained in:
commit
0ab04c4a08
@ -89,11 +89,8 @@ class PlayingQueueSheet : ExpandedBottomSheet() {
|
|||||||
val from = viewHolder.absoluteAdapterPosition
|
val from = viewHolder.absoluteAdapterPosition
|
||||||
val to = target.absoluteAdapterPosition
|
val to = target.absoluteAdapterPosition
|
||||||
|
|
||||||
val currentPosition = PlayingQueue.currentIndex()
|
|
||||||
if (to <= currentPosition) return false
|
|
||||||
|
|
||||||
adapter.notifyItemMoved(from, to)
|
|
||||||
PlayingQueue.move(from, to)
|
PlayingQueue.move(from, to)
|
||||||
|
adapter.notifyItemMoved(from, to)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user