Use artist ID for primary image in constructors

When using the constructor with an Album or Song, default the image to
the artist ID so the artist image always shows up when set.
Fixes #203 and has no side effects as far as I can see.
This commit is contained in:
bgaesslein 2022-02-13 14:12:54 +01:00
commit 624407b71b

View file

@ -46,11 +46,13 @@ public class Artist implements Parcelable {
public Artist(Album album) { public Artist(Album album) {
this.id = album.artistId; this.id = album.artistId;
this.name = album.artistName; this.name = album.artistName;
this.primary = this.id;
} }
public Artist(Song song) { public Artist(Song song) {
this.id = song.artistId; this.id = song.artistId;
this.name = song.artistName; this.name = song.artistName;
this.primary = this.id;
} }
public Artist() { public Artist() {