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 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) {