Show character avatar in remote posters when there's no image.
This commit is contained in:
parent
6cb65f627d
commit
6fc84b5036
|
@ -745,7 +745,9 @@ public class NowPlayingFragment extends Fragment
|
|||
mediaPoster.setVisibility(View.VISIBLE);
|
||||
int posterWidth = resources.getDimensionPixelOffset(R.dimen.now_playing_poster_width);
|
||||
int posterHeight = resources.getDimensionPixelOffset(R.dimen.now_playing_poster_height);
|
||||
UIUtils.loadImageIntoImageview(hostManager, poster, mediaPoster, posterWidth, posterHeight);
|
||||
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
||||
poster, title,
|
||||
mediaPoster, posterWidth, posterHeight);
|
||||
UIUtils.loadImageIntoImageview(hostManager, art, mediaArt, displayMetrics.widthPixels, artHeight);
|
||||
|
||||
// Reset padding
|
||||
|
|
|
@ -652,7 +652,9 @@ public class PlaylistFragment extends Fragment
|
|||
|
||||
int artWidth = getResources().getDimensionPixelSize(R.dimen.playlist_art_width);
|
||||
int artHeigth = getResources().getDimensionPixelSize(R.dimen.playlist_art_heigth);
|
||||
UIUtils.loadImageIntoImageview(hostManager, artUrl, viewHolder.art, artWidth, artHeigth);
|
||||
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
||||
artUrl, title,
|
||||
viewHolder.art, artWidth, artHeigth);
|
||||
|
||||
// For the popupmenu
|
||||
viewHolder.contextMenu.setTag(position);
|
||||
|
|
|
@ -382,8 +382,9 @@ public class RemoteFragment extends Fragment
|
|||
nowPlayingTitle.setText(title);
|
||||
nowPlayingDetails.setText(underTitle);
|
||||
|
||||
UIUtils.loadImageIntoImageview(hostManager, thumbnailUrl, thumbnail,
|
||||
thumbnail.getWidth(), thumbnail.getHeight());
|
||||
UIUtils.loadImageWithCharacterAvatar(getActivity(), hostManager,
|
||||
thumbnailUrl, title,
|
||||
thumbnail, thumbnail.getWidth(), thumbnail.getHeight());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue