mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 16:23:08 +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()));
|
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||||
.build()
|
.build()
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public class ArtistCatalogueAdapter extends RecyclerView.Adapter<ArtistCatalogue
|
|||||||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||||
.build()
|
.build()
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
|
|||||||
holder.artistInfo.setText("Album count: " + String.valueOf(artist.getAlbumCount()));
|
holder.artistInfo.setText("Album count: " + String.valueOf(artist.getAlbumCount()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||||
.build()
|
.build()
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
|||||||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getPrimary(), artist.getPrimaryBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||||
.build()
|
.build()
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user