Saved the playback position when the player is paused

This commit is contained in:
CappielloAntonio 2022-01-02 17:43:30 +01:00
parent e4d09f3bc0
commit 40866a2855
7 changed files with 101 additions and 13 deletions

View file

@ -34,10 +34,13 @@ public class Queue {
@ColumnInfo(name = "duration")
private long duration;
@ColumnInfo(name = "last_play")
@ColumnInfo(name = "last_play",defaultValue = "0")
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) {
@ColumnInfo(name = "playing_changed", defaultValue = "0")
private long playingChanged;
public Queue(int trackOrder, String songID, String title, String albumId, String albumName, String artistId, String artistName, String primary, long duration, long lastPlay, long playingChanged) {
this.trackOrder = trackOrder;
this.songID = songID;
this.title = title;
@ -48,6 +51,7 @@ public class Queue {
this.primary = primary;
this.duration = duration;
this.lastPlay = lastPlay;
this.playingChanged = playingChanged;
}
public int getTrackOrder() {
@ -129,4 +133,12 @@ public class Queue {
public void setLastPlay(long lastPlay) {
this.lastPlay = lastPlay;
}
public long getPlayingChanged() {
return playingChanged;
}
public void setPlayingChanged(long playingChanged) {
this.playingChanged = playingChanged;
}
}