Limit number of recipients in headers (2)

pull/207/head
M66B 2 years ago
parent 3cfa634ac9
commit 31d24b9060

@ -1322,7 +1322,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
MessageHelper.AddressFormat format = email_format; MessageHelper.AddressFormat format = email_format;
if (show_recipients && recipients != null && recipients.length > 0) { if (show_recipients && recipients != null && recipients.length > 0) {
int maxRecipients = (compact ? MAX_RECIPIENTS_COMPACT : MAX_RECIPIENTS_NORMAL); int maxRecipients = (viewType == ViewType.THREAD
? Integer.MAX_VALUE
: (compact ? MAX_RECIPIENTS_COMPACT : MAX_RECIPIENTS_NORMAL));
tvFrom.setText(context.getString(outgoing && viewType != ViewType.THREAD && compact tvFrom.setText(context.getString(outgoing && viewType != ViewType.THREAD && compact
? R.string.title_to_from ? R.string.title_to_from
: R.string.title_from_to, : R.string.title_from_to,

Loading…
Cancel
Save