mirror of https://github.com/M66B/FairEmail.git
Show SVG in mini gallery
This commit is contained in:
parent
46a9127785
commit
68d9765d4c
|
@ -3173,7 +3173,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
List<EntityAttachment> 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);
|
||||
|
|
Loading…
Reference in New Issue