mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
Choice of artist image using Last FM as source. TODO: Create preference for source choice
This commit is contained in:
@@ -87,7 +87,13 @@ public class ArtistCatalogueAdapter extends RecyclerView.Adapter<ArtistCatalogue
|
|||||||
holder.textArtistName.setText(MusicUtil.getReadableString(artist.getName()));
|
holder.textArtistName.setText(MusicUtil.getReadableString(artist.getName()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getId(), CustomGlideRequest.ARTIST_PIC, null)
|
.from(
|
||||||
|
context,
|
||||||
|
artist.getId(),
|
||||||
|
// CustomGlideRequest.ARTIST_PIC,
|
||||||
|
artist.getImageUrl(),
|
||||||
|
null
|
||||||
|
)
|
||||||
.build()
|
.build()
|
||||||
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
|
|||||||
@@ -57,7 +57,12 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
|
|||||||
}
|
}
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getId(), CustomGlideRequest.ARTIST_PIC, null)
|
.from(
|
||||||
|
context, artist.getId(),
|
||||||
|
// CustomGlideRequest.ARTIST_PIC,
|
||||||
|
artist.getImageUrl(),
|
||||||
|
null
|
||||||
|
)
|
||||||
.build()
|
.build()
|
||||||
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
|
|||||||
@@ -49,7 +49,13 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
|||||||
holder.textArtistName.setText(MusicUtil.getReadableString(artist.getName()));
|
holder.textArtistName.setText(MusicUtil.getReadableString(artist.getName()));
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(context, artist.getId(), CustomGlideRequest.ALBUM_PIC, null)
|
.from(
|
||||||
|
context,
|
||||||
|
artist.getId(),
|
||||||
|
// CustomGlideRequest.ARTIST_PIC,
|
||||||
|
artist.getImageUrl(),
|
||||||
|
null
|
||||||
|
)
|
||||||
.build()
|
.build()
|
||||||
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
.transform(new RoundedCorners(CustomGlideRequest.CORNER_RADIUS))
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
|
|||||||
@@ -120,7 +120,13 @@ public class ArtistPageFragment extends Fragment {
|
|||||||
if (bind != null) bind.bioMoreTextViewClickable.setVisibility(artist.getLastfm() != null ? View.VISIBLE : View.GONE);
|
if (bind != null) bind.bioMoreTextViewClickable.setVisibility(artist.getLastfm() != null ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
CustomGlideRequest.Builder
|
CustomGlideRequest.Builder
|
||||||
.from(requireContext(), artistPageViewModel.getArtist().getId(), CustomGlideRequest.ARTIST_PIC, /*artist.getImageUrl()*/ null)
|
.from(
|
||||||
|
requireContext(),
|
||||||
|
artistPageViewModel.getArtist().getId(),
|
||||||
|
// CustomGlideRequest.ARTIST_PIC,
|
||||||
|
artist.getImageUrl(),
|
||||||
|
null
|
||||||
|
)
|
||||||
.build()
|
.build()
|
||||||
.into(bind.artistBackdropImageView);
|
.into(bind.artistBackdropImageView);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user