Change loading the mediaArt imageView, to not load a character avatar if no fanart present

This commit is contained in:
Synced Synapse 2015-12-09 19:00:04 +00:00
parent f0cea00730
commit 9b4c4d6315
1 changed files with 5 additions and 10 deletions

View File

@ -446,16 +446,11 @@ public class AlbumDetailsFragment extends Fragment
int posterWidth = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_width);
int posterHeight = resources.getDimensionPixelOffset(R.dimen.albumdetail_poster_heigth);
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
poster, albumTitle,
mediaPoster, posterWidth, posterHeight);
if (!TextUtils.isEmpty(fanart)) {
UIUtils.loadImageIntoImageview(hostManager,
fanart,
mediaArt, artWidth, artHeight);
} else {
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
poster, albumTitle, mediaArt, artWidth, artHeight);
}
poster, albumTitle,
mediaPoster, posterWidth, posterHeight);
UIUtils.loadImageIntoImageview(hostManager,
TextUtils.isEmpty(fanart)? poster : fanart,
mediaArt, artWidth, artHeight);
}
private void setMediaRating(double rating) {