Fix placeholder image sometimes missing
This commit is contained in:
parent
89cfeb93db
commit
08ff965550
|
@ -126,7 +126,7 @@ public class CoverLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadFailed(Drawable errorDrawable) {
|
public void onLoadFailed(Drawable errorDrawable) {
|
||||||
|
setPlaceholderVisibility(this.placeholder.get(), true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -149,6 +149,7 @@ public class CoverLoader {
|
||||||
if (placeholder != null) {
|
if (placeholder != null) {
|
||||||
if (textAndImageCombined || showTitle) {
|
if (textAndImageCombined || showTitle) {
|
||||||
final Context context = placeholder.getContext();
|
final Context context = placeholder.getContext();
|
||||||
|
placeholder.setVisibility(View.VISIBLE);
|
||||||
int bgColor = ContextCompat.getColor(context, R.color.feed_text_bg);
|
int bgColor = ContextCompat.getColor(context, R.color.feed_text_bg);
|
||||||
if (palette == null || !showTitle) {
|
if (palette == null || !showTitle) {
|
||||||
placeholder.setBackgroundColor(bgColor);
|
placeholder.setBackgroundColor(bgColor);
|
||||||
|
|
Loading…
Reference in New Issue