From 6ce2b95328c405ef3af8c28e9383dc6d17d931ff Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 6 May 2020 10:47:25 +0200 Subject: [PATCH] Recipient fixes --- .../main/java/eu/faircode/email/AdapterMessage.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index c117d874f9..f1b92cbd96 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1069,7 +1069,12 @@ public class AdapterMessage extends RecyclerView.Adapter all = new ArrayList<>(); + if (senders != null) + all.addAll(Arrays.asList(senders)); + if (show_recipients && recipients != null) + all.addAll(Arrays.asList(recipients)); + ContactInfo[] info = ContactInfo.getCached(context, message.account, all.toArray(new Address[0])); if (info == null) { if (taskContactInfo != null) taskContactInfo.cancel(context); @@ -1312,8 +1317,8 @@ public class AdapterMessage extends RecyclerView.Adapter 0) tvFrom.setText(context.getString(R.string.title_from_to, - MessageHelper.formatAddresses(_senders, name_email, false), - MessageHelper.formatAddresses(_recipients, name_email, false))); + MessageHelper.formatAddresses(_senders == null ? senders : _senders, name_email, false), + MessageHelper.formatAddresses(_recipients == null ? recipients : _recipients, name_email, false))); else tvFrom.setText(MessageHelper.formatAddresses(senders, name_email, false));