Improve placeholder channel banner handling
Now the placeholder gets hidden if there is no banner url or the user disabled images, to save space
This commit is contained in:
parent
1061bce4f3
commit
c48e702a50
3 changed files with 18 additions and 11 deletions
|
|
@ -109,11 +109,7 @@ public final class PicassoHelper {
|
|||
}
|
||||
|
||||
public static RequestCreator loadBanner(final String url) {
|
||||
if (!shouldLoadImages || isBlank(url)) {
|
||||
return picassoInstance.load((String) null);
|
||||
} else {
|
||||
return picassoInstance.load(url);
|
||||
}
|
||||
return loadImageDefault(url, R.drawable.placeholder_channel_banner);
|
||||
}
|
||||
|
||||
public static RequestCreator loadPlaylistThumbnail(final String url) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue