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 1061bce4f3
commit c48e702a50
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
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) {