From 4279fd1866d6944a87cc588b0aa5e87218e83790 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 Mar 2021 08:48:27 +0100 Subject: [PATCH] Added insert group logging --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index d5644e0317..aeced2ca2c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -3061,6 +3061,8 @@ public class FragmentCompose extends FragmentBase { int target = args.getInt("target"); long group = args.getLong("group"); + EntityLog.log(context, "Selected group=" + group); + List
selected = new ArrayList<>(); try (Cursor cursor = context.getContentResolver().query( @@ -3083,7 +3085,10 @@ public class FragmentCompose extends FragmentBase { if (contact != null && contact.moveToNext()) { String name = contact.getString(0); String email = contact.getString(1); - selected.add(new InternetAddress(email, name, StandardCharsets.UTF_8.name())); + Address address = new InternetAddress(email, name, StandardCharsets.UTF_8.name()); + EntityLog.log(context, "Selected group=" + group + + " address=" + MessageHelper.formatAddresses(new Address[]{address})); + selected.add(address); } } }