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:
Stypox 2023-04-21 17:05:28 +02:00
parent 486664f293
commit b26c5a7d5c
3 changed files with 18 additions and 11 deletions

View file

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