diff options
author | ByteHamster <info@bytehamster.com> | 2022-06-03 14:18:29 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-06-03 14:18:29 +0200 |
commit | 08ff9655501eaa9b34411b38acd5c1deba36fc1b (patch) | |
tree | 749d2c6219f5a186df7cc393d7b27ffdc24f205b /app | |
parent | 89cfeb93db5050ba6dcf2b6c3814bd9386f188b8 (diff) | |
download | AntennaPod-08ff9655501eaa9b34411b38acd5c1deba36fc1b.zip |
Fix placeholder image sometimes missing
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |