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:
parent
03a3c9a1f7
commit
624407b71b
1 changed files with 2 additions and 0 deletions
|
|
@ -46,11 +46,13 @@ public class Artist implements Parcelable {
|
|||
public Artist(Album album) {
|
||||
this.id = album.artistId;
|
||||
this.name = album.artistName;
|
||||
this.primary = this.id;
|
||||
}
|
||||
|
||||
public Artist(Song song) {
|
||||
this.id = song.artistId;
|
||||
this.name = song.artistName;
|
||||
this.primary = this.id;
|
||||
}
|
||||
|
||||
public Artist() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue