Added server info in download item saved in db

This commit is contained in:
CappielloAntonio 2021-08-09 00:34:13 +02:00
parent af60a4a3eb
commit 16d766a17d

View file

@ -5,6 +5,9 @@ import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import com.cappielloantonio.play.App;
import com.cappielloantonio.play.util.PreferenceUtil;
@Entity(tableName = "download")
public class Download {
@NonNull
@ -57,6 +60,7 @@ public class Download {
this.artistName = song.getArtistName();
this.primary = song.getPrimary();
this.duration = song.getDuration();
this.server = PreferenceUtil.getInstance(App.getInstance()).getServerId();
}
public String getSongID() {