diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-06-03 16:47:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 16:47:10 +0200 |
commit | fd066a648ba46762267acb9fd1042d1c2f851303 (patch) | |
tree | 15125857eabab67ac0703d310f50fb003aff0f59 /app | |
parent | d16879995395b54d9030cfc90d8ef0e0271c2803 (diff) | |
parent | 08ff9655501eaa9b34411b38acd5c1deba36fc1b (diff) | |
download | AntennaPod-fd066a648ba46762267acb9fd1042d1c2f851303.zip |
Merge pull request #5923 from ByteHamster/fix-placeholder
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); |