Reverting broken images
This commit is contained in:
parent
90aa8c5762
commit
2c8ecbd996
|
@ -73,7 +73,6 @@ public abstract class ImageStatusDisplayItem extends StatusDisplayItem{
|
||||||
photo.setImageDrawable(crossfadeDrawable);
|
photo.setImageDrawable(crossfadeDrawable);
|
||||||
photo.setContentDescription(TextUtils.isEmpty(item.attachment.description) ? item.parentFragment.getString(R.string.media_no_description) : item.attachment.description);
|
photo.setContentDescription(TextUtils.isEmpty(item.attachment.description) ? item.parentFragment.getString(R.string.media_no_description) : item.attachment.description);
|
||||||
didClear=false;
|
didClear=false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{
|
||||||
|
|
||||||
photo.setImageDrawable(null);
|
photo.setImageDrawable(null);
|
||||||
if(item.imgRequest!=null){
|
if(item.imgRequest!=null){
|
||||||
|
crossfadeDrawable.setSize(card.width, card.height);
|
||||||
if (card.width > 0) {
|
if (card.width > 0) {
|
||||||
// akkoma servers don't provide width and height
|
// akkoma servers don't provide width and height
|
||||||
crossfadeDrawable.setSize(card.width, card.height);
|
crossfadeDrawable.setSize(card.width, card.height);
|
||||||
|
@ -84,7 +85,6 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{
|
||||||
photo.setImageDrawable(crossfadeDrawable);
|
photo.setImageDrawable(crossfadeDrawable);
|
||||||
didClear=false;
|
didClear=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -105,3 +105,4 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue