mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 14:43:36 +00:00
Added server info in download item saved in db
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user