Fix placeholder image sometimes missing

This commit is contained in:
ByteHamster 2022-06-03 14:18:29 +02:00
parent 89cfeb93db
commit 08ff965550
1 changed files with 2 additions and 1 deletions

View File

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