From e4c2adaa5b58c0e56b5885f857f54375c8f33e76 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 17 Feb 2019 12:05:58 +0000 Subject: [PATCH] Improved inline attachment selection --- .../java/eu/faircode/email/AdapterMessage.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 221a7399f7..ed5ad1746a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -891,28 +891,30 @@ public class AdapterMessage extends RecyclerView.Adapter images = new ArrayList<>(); for (EntityAttachment attachment : attachments) - if (attachment.type.startsWith("image/") && !attachment.isInline()) + if (attachment.type.startsWith("image/")) images.add(attachment); adapterImage.set(images); rvImage.setVisibility(images.size() > 0 ? View.VISIBLE : View.GONE);