mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Added server info in download item saved in db
This commit is contained in:
parent
af60a4a3eb
commit
16d766a17d
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue