mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 14:43:36 +00:00
Return artist's artwork by passing artist id instead cover art id
This commit is contained in:
@@ -47,7 +47,7 @@ public class ArtistAdapter extends RecyclerView.Adapter<ArtistAdapter.ViewHolder
|
||||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class ArtistCatalogueAdapter extends RecyclerView.Adapter<ArtistCatalogue
|
||||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
|
||||
holder.artistInfo.setText("Album count: " + String.valueOf(artist.getAlbumCount()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
||||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user