Added media type to class and replaced "song" with a generic "media"

This commit is contained in:
antonio 2022-03-12 14:09:00 +01:00
parent eecbed2f61
commit 51cd88dd3f
9 changed files with 52 additions and 38 deletions

View file

@ -119,7 +119,7 @@ public class Media implements Parcelable {
}
public Media(Download download) {
this.id = download.getSongID();
this.id = download.getMediaID();
this.title = download.getTitle();
this.albumId = download.getAlbumId();
this.albumName = download.getAlbumName();
@ -128,6 +128,7 @@ public class Media implements Parcelable {
this.trackNumber = download.getTrackNumber();
this.coverArtId = download.getPrimary();
this.duration = download.getDuration();
this.type = download.getType();
}
public String getId() {