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

@ -448,14 +448,9 @@ public class AlbumDetailsFragment extends Fragment
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
poster, albumTitle,
mediaPoster, posterWidth, posterHeight);
if (!TextUtils.isEmpty(fanart)) {
UIUtils.loadImageIntoImageview(hostManager,
fanart,
TextUtils.isEmpty(fanart)? poster : fanart,
mediaArt, artWidth, artHeight);
} else {
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
poster, albumTitle, mediaArt, artWidth, artHeight);
}
}
private void setMediaRating(double rating) {