From f721285d7c3f4cad83068239d8873e60c6fde5c7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Jan 2019 10:18:42 +0000 Subject: [PATCH] Layout improvements --- .../eu/faircode/email/AdapterMessage.java | 22 ++++++++++++++----- .../java/eu/faircode/email/MessageHelper.java | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 459ea1423b..b7994d5100 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -73,6 +73,7 @@ import org.xml.sax.XMLReader; import java.io.File; import java.io.IOException; +import java.io.UnsupportedEncodingException; import java.text.Collator; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -459,7 +460,14 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? colorAccent : textColorSecondary)); ivFlagged.setVisibility(message.uid == null ? View.INVISIBLE : View.VISIBLE); - tvFrom.setText(MessageHelper.formatAddressesShort(outgoing ? message.to : message.from)); + tvFrom.setText(MessageHelper.formatAddresses(outgoing ? message.to : message.from, !compact, false)); tvSize.setText(message.size == null ? null : Helper.humanReadableByteCount(message.size, true)); tvSize.setVisibility(message.size == null || message.content ? View.GONE : View.VISIBLE); tvTime.setText(DateUtils.getRelativeTimeSpanString(context, message.received)); @@ -500,12 +508,14 @@ public class AdapterMessage extends RecyclerView.Adapter