From 988afe84e38ca8ea6034e83e32042a787765466a Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 13 Jun 2025 21:55:54 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index d2dfe71bfd..3ec2f229f6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -493,11 +493,7 @@ public class FragmentCompose extends FragmentBase { if (permissions == null) return false; UriType uriType = new UriType(uri, event.getClipDescription(), activity); - Helper.UriInfo info = Helper.getInfo(uriType, activity); - if (info.isImage()) - onAddImageFile(Arrays.asList(uriType), false); - else - onAddAttachment(Arrays.asList(uriType), false, 0, false, false, false); + onSharedAttachments(new ArrayList<>(Arrays.asList(uriType))); return true; default: return false;