mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Add option to order and delete elements from queue by dragging and swiping
This commit is contained in:
@@ -12,10 +12,12 @@ public class QueueUtil {
|
||||
}
|
||||
|
||||
public static List<Queue> getQueueElementsFromSongs(List<Song> songs) {
|
||||
int counter = 0;
|
||||
List<Queue> queue = new ArrayList<>();
|
||||
|
||||
for(Song song: songs) {
|
||||
queue.add(new Queue(song.getId(), 0));
|
||||
queue.add(new Queue(song.getId(), counter));
|
||||
counter++;
|
||||
}
|
||||
|
||||
return queue;
|
||||
|
||||
Reference in New Issue
Block a user