diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java index 6e37cb3767..afba9b2fe8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java @@ -88,7 +88,10 @@ public void onBind(LinkCardStatusDisplayItem item){ crossfadeDrawable.setBlurhashDrawable(card.blurhashPlaceholder); crossfadeDrawable.setCrossfadeAlpha(item.status.spoilerRevealed ? 0f : 1f); photo.setImageDrawable(crossfadeDrawable); + photo.setVisibility(View.VISIBLE); didClear=false; + } else { + photo.setVisibility(View.GONE); } // if there's no image, we don't want to cover the inset borders diff --git a/mastodon/src/main/res/layout/display_item_link_card.xml b/mastodon/src/main/res/layout/display_item_link_card.xml index fae9dade6a..31ac964186 100644 --- a/mastodon/src/main/res/layout/display_item_link_card.xml +++ b/mastodon/src/main/res/layout/display_item_link_card.xml @@ -8,14 +8,14 @@