From d253e77c22d0d31acf62dd0c3171eed672ce0678 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 19 Oct 2018 17:03:27 +0000 Subject: [PATCH] Fixed from address for sent messages --- .../java/eu/faircode/email/AdapterMessage.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index f8819f72..fefff31c 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -281,15 +281,14 @@ public class AdapterMessage extends PagedListAdapter 0 ? View.VISIBLE : View.GONE); + tvFrom.setText(MessageHelper.getFormattedAddresses(message.from, false)); + if (EntityFolder.DRAFTS.equals(message.folderType) || EntityFolder.OUTBOX.equals(message.folderType) || - EntityFolder.SENT.equals(message.folderType)) { - tvFrom.setText(MessageHelper.getFormattedAddresses(message.to, false)); + EntityFolder.SENT.equals(message.folderType)) tvTime.setText(DateUtils.getRelativeTimeSpanString(context, message.sent == null ? message.received : message.sent)); - } else { - tvFrom.setText(MessageHelper.getFormattedAddresses(message.from, false)); + else tvTime.setText(DateUtils.getRelativeTimeSpanString(context, message.received)); - } tvSize.setText(message.size == null ? null : Helper.humanReadableByteCount(message.size, true)); tvSize.setTypeface(null, message.content ? Typeface.NORMAL : Typeface.BOLD); @@ -367,14 +366,12 @@ public class AdapterMessage extends PagedListAdapter