From 85fc6494d35ec49fb2dd3368ed18967f83a4d091 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 4 Dec 2019 08:38:08 +0100 Subject: [PATCH] Hide encryption attachments --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 6cdd1e75eb..24135a2b5b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1612,7 +1612,7 @@ public class AdapterMessage extends RecyclerView.Adapter a = new ArrayList<>(); for (EntityAttachment attachment : attachments) { - boolean inline = (attachment.isInline() && attachment.isImage()); + boolean inline = ((attachment.isInline() && attachment.isImage()) || attachment.encryption != null); if (inline) has_inline = true; if (attachment.progress == null && !attachment.available)