From 08ff9655501eaa9b34411b38acd5c1deba36fc1b Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 3 Jun 2022 14:18:29 +0200 Subject: [PATCH] Fix placeholder image sometimes missing --- .../main/java/de/danoeh/antennapod/adapter/CoverLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java index d30141b7a..d60b0f673 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java @@ -126,7 +126,7 @@ public class CoverLoader { @Override public void onLoadFailed(Drawable errorDrawable) { - + setPlaceholderVisibility(this.placeholder.get(), true, null); } @Override @@ -149,6 +149,7 @@ public class CoverLoader { if (placeholder != null) { if (textAndImageCombined || showTitle) { final Context context = placeholder.getContext(); + placeholder.setVisibility(View.VISIBLE); int bgColor = ContextCompat.getColor(context, R.color.feed_text_bg); if (palette == null || !showTitle) { placeholder.setBackgroundColor(bgColor);