Change loading the mediaArt imageView, to not load a character avatar if no fanart present
This commit is contained in:
parent
f0cea00730
commit
9b4c4d6315
|
@ -446,16 +446,11 @@ public class AlbumDetailsFragment extends Fragment
|
||||||
int posterWidth = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_width);
|
int posterWidth = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_width);
|
||||||
int posterHeight = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_heigth);
|
int posterHeight = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_heigth);
|
||||||
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
||||||
poster, albumTitle,
|
poster, albumTitle,
|
||||||
mediaPoster, posterWidth, posterHeight);
|
mediaPoster, posterWidth, posterHeight);
|
||||||
if (!TextUtils.isEmpty(fanart)) {
|
UIUtils.loadImageIntoImageview(hostManager,
|
||||||
UIUtils.loadImageIntoImageview(hostManager,
|
TextUtils.isEmpty(fanart)? poster : fanart,
|
||||||
fanart,
|
mediaArt, artWidth, artHeight);
|
||||||
mediaArt, artWidth, artHeight);
|
|
||||||
} else {
|
|
||||||
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
|
||||||
poster, albumTitle, mediaArt, artWidth, artHeight);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setMediaRating(double rating) {
|
private void setMediaRating(double rating) {
|
||||||
|
|
Loading…
Reference in New Issue