Modified the queue update logic

This commit is contained in:
CappielloAntonio 2021-12-30 13:47:07 +01:00
parent 747431423e
commit 88d8a8c620
4 changed files with 87 additions and 16 deletions

View file

@ -6,7 +6,7 @@ import androidx.room.PrimaryKey;
@Entity(tableName = "queue")
public class Queue {
@PrimaryKey
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "track_order")
private int trackOrder;
@ -37,8 +37,7 @@ public class Queue {
@ColumnInfo(name = "last_play")
private long lastPlay;
public Queue(int trackOrder, String songID, String title, String albumId, String albumName, String artistId, String artistName, String primary, long duration, long lastPlay) {
this.trackOrder = trackOrder;
public Queue(String songID, String title, String albumId, String albumName, String artistId, String artistName, String primary, long duration, long lastPlay) {
this.songID = songID;
this.title = title;
this.albumId = albumId;