From 20f3c7c9dbc6ebae76402d56dc84dc8e41bdd91d Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 5 Sep 2023 19:52:59 -0300 Subject: [PATCH] fix: use correct polarization in FLAG_NO_MEDIA_PREVIEW --- .../android/ui/displayitems/StatusDisplayItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }