Browse Source

Show to instead of from for outgoing messages

main
M66B 6 years ago
parent
commit
05fae3ea20
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      app/src/main/java/eu/faircode/email/AdapterMessage.java

+ 5
- 4
app/src/main/java/eu/faircode/email/AdapterMessage.java View File

@ -280,14 +280,15 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
else else
ivFlagged.setVisibility(message.count - message.unflagged > 0 ? View.VISIBLE : View.GONE); ivFlagged.setVisibility(message.count - message.unflagged > 0 ? View.VISIBLE : View.GONE);
tvFrom.setText(MessageHelper.getFormattedAddresses(message.from, !compact));
if (EntityFolder.DRAFTS.equals(message.folderType) || if (EntityFolder.DRAFTS.equals(message.folderType) ||
EntityFolder.OUTBOX.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)); 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)); tvTime.setText(DateUtils.getRelativeTimeSpanString(context, message.received));
}
tvSize.setText(message.size == null ? null : Helper.humanReadableByteCount(message.size, true)); tvSize.setText(message.size == null ? null : Helper.humanReadableByteCount(message.size, true));
tvSize.setTypeface(null, message.content ? Typeface.NORMAL : Typeface.BOLD); tvSize.setTypeface(null, message.content ? Typeface.NORMAL : Typeface.BOLD);


Loading…
Cancel
Save