mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
Merge pull request #1772 from Bnyro/master
disable modifying the already played queue items
This commit is contained in:
commit
d331bc161c
@ -73,6 +73,9 @@ 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)
|
adapter.notifyItemMoved(from, to)
|
||||||
PlayingQueue.move(from, to)
|
PlayingQueue.move(from, to)
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user