mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Fix image size settings
This commit is contained in:
parent
c522382da2
commit
2d7252e9e4
2 changed files with 5 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ package com.cappielloantonio.play.glide;
|
|||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.core.content.res.ResourcesCompat;
|
||||
|
||||
|
|
@ -50,9 +51,9 @@ public class CustomGlideRequest {
|
|||
"&c=" + params.get("c") +
|
||||
"&id=" + item;
|
||||
|
||||
if (size != -1) {
|
||||
return url + "&size" + size;
|
||||
}
|
||||
if (size != -1) { url = url + "&size=" + size; }
|
||||
|
||||
Log.d(TAG, "createUrl() " + url);
|
||||
|
||||
return url;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ public class ArtistPageFragment extends Fragment {
|
|||
if (bind != null) bind.bioMoreTextViewClickable.setVisibility(artist.getLastfm() != null ? View.VISIBLE : View.GONE);
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(requireContext(), /*artistPageViewModel.getArtist().getId()*/ null, CustomGlideRequest.ARTIST_PIC, artist.getImageUrl())
|
||||
.from(requireContext(), artistPageViewModel.getArtist().getId(), CustomGlideRequest.ARTIST_PIC, /*artist.getImageUrl()*/ null)
|
||||
.build()
|
||||
.into(bind.artistBackdropImageView);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue