diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index 9aa262f4d..a86317029 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -253,7 +253,7 @@ public abstract class StatusDisplayItem{ } List imageAttachments=statusForContent.mediaAttachments.stream().filter(att->att.type.isImage()).collect(Collectors.toList()); - if(!imageAttachments.isEmpty() && ((flags & FLAG_NO_MEDIA_PREVIEW)!=0)){ + if(!imageAttachments.isEmpty() && (flags & FLAG_NO_MEDIA_PREVIEW)==0){ int color = UiUtils.getThemeColor(fragment.getContext(), R.attr.colorM3SurfaceVariant); for (Attachment att : imageAttachments) { if (att.blurhashPlaceholder == null) { @@ -268,7 +268,7 @@ public abstract class StatusDisplayItem{ statusForContent.sensitiveRevealed=true; contentItems.add(mediaGrid); } - if((flags & FLAG_NO_MEDIA_PREVIEW)==0){ + if((flags & FLAG_NO_MEDIA_PREVIEW)!=0){ for(Attachment att:imageAttachments){ contentItems.add(new FileStatusDisplayItem(parentID, fragment, att, statusForContent)); }