1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 08:29:24 +00:00

Reverse sender/recipient in compact mode only

This commit is contained in:
M66B 2020-10-24 12:56:40 +02:00
parent 27b502c530
commit f536e27bbc

View file

@ -991,8 +991,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ivSigned.clearColorFilter();
ivEncrypted.setVisibility(message.encrypted > 0 ? View.VISIBLE : View.GONE);
if (show_recipients && recipients != null && recipients.length > 0)
tvFrom.setText(context.getString(
outgoing && viewType != ViewType.THREAD ? R.string.title_to_from : R.string.title_from_to,
tvFrom.setText(context.getString(outgoing && viewType != ViewType.THREAD && compact
? R.string.title_to_from
: R.string.title_from_to,
MessageHelper.formatAddresses(senders, name_email, false),
MessageHelper.formatAddresses(recipients, name_email, false)));
else