Native SVG support

This commit is contained in:
M66B
2022-03-19 17:32:35 +01:00
parent 9644a1a4c6
commit 4b6e8dda2f
4 changed files with 2735 additions and 4 deletions

View File

@@ -3173,8 +3173,7 @@ 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() || "image/svg+xml".equals(attachment.getMimeType())))
if (attachment.isAttachment() && attachment.isImage())
images.add(attachment);
adapterImage.set(images);
grpImages.setVisibility(images.size() > 0 ? View.VISIBLE : View.GONE);