From 05fae3ea201a095c63a2c615385d3ca90eff5963 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 Oct 2018 07:57:25 +0000 Subject: [PATCH] Show to instead of from for outgoing messages --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 58bfe772..df098b51 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -280,14 +280,15 @@ public class AdapterMessage extends PagedListAdapter 0 ? View.VISIBLE : View.GONE); - tvFrom.setText(MessageHelper.getFormattedAddresses(message.from, !compact)); - if (EntityFolder.DRAFTS.equals(message.folderType) || EntityFolder.OUTBOX.equals(message.folderType) || - EntityFolder.SENT.equals(message.folderType)) + EntityFolder.SENT.equals(message.folderType)) { + tvFrom.setText(MessageHelper.getFormattedAddresses(message.to, !compact)); tvTime.setText(DateUtils.getRelativeTimeSpanString(context, message.sent == null ? message.received : message.sent)); - else + } else { + tvFrom.setText(MessageHelper.getFormattedAddresses(message.from, !compact)); 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);