From 68d9765d4cc97626ac9b15dc31350d9f647bcbbc Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 19 Mar 2022 14:43:35 +0100 Subject: [PATCH] Show SVG in mini gallery --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 3 ++- 1 file changed, 2 insertions(+), 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 c39da18ce5..6ea8f7c788 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -3173,7 +3173,8 @@ public class AdapterMessage extends RecyclerView.Adapter images = new ArrayList<>(); if (thumbnails && bind_extras) for (EntityAttachment attachment : attachments) - if (attachment.isAttachment() && attachment.isImage()) + if (attachment.isAttachment() && + (attachment.isImage() || "image/svg+xml".equals(attachment.getMimeType()))) images.add(attachment); adapterImage.set(images); grpImages.setVisibility(images.size() > 0 ? View.VISIBLE : View.GONE);