mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Small improvement
This commit is contained in:
parent
26e951b924
commit
2dea5ebd5d
1 changed files with 8 additions and 1 deletions
|
@ -516,11 +516,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvError = itemView.findViewById(R.id.tvError);
|
||||
ibHelp = itemView.findViewById(R.id.ibHelp);
|
||||
|
||||
if (tvFrom != null) {
|
||||
if (compact)
|
||||
tvFrom.setSingleLine(true);
|
||||
}
|
||||
|
||||
if (tvSubject != null) {
|
||||
tvSubject.setTextColor(colorSubject);
|
||||
|
||||
if (compact) {
|
||||
tvSubject.setSingleLine(!"full".equals(subject_ellipsize));
|
||||
boolean full = "full".equals(subject_ellipsize);
|
||||
tvSubject.setSingleLine(!full);
|
||||
|
||||
if ("start".equals(subject_ellipsize))
|
||||
tvSubject.setEllipsize(TextUtils.TruncateAt.START);
|
||||
else if ("end".equals(subject_ellipsize))
|
||||
|
|
Loading…
Reference in a new issue