From 9b57ced39e9bf92dfd5cd2d3ebeffb35a986f2a4 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 1 Sep 2022 10:32:38 +0200 Subject: [PATCH] Log adding attachments --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 9c3a6f33e1..cbfb52ba8a 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4318,6 +4318,10 @@ public class FragmentCompose extends FragmentBase { EntityAttachment attachment = new EntityAttachment(); UriInfo info = getInfo(uri, context); + EntityLog.log(context, "Add attachment" + + " uri=" + uri + " image=" + image + " resize=" + resize + " privacy=" + privacy + + " name=" + info.name + " type=" + info.type + " size=" + info.size); + String ext = Helper.getExtension(info.name); if (info.name != null && ext == null && info.type != null) { String guessed = MimeTypeMap.getSingleton() @@ -8079,6 +8083,7 @@ public class FragmentCompose extends FragmentBase { } } + @NonNull private static UriInfo getInfo(Uri uri, Context context) { UriInfo result = new UriInfo(); try {