mirror of https://github.com/M66B/FairEmail.git
Layout optimization
This commit is contained in:
parent
9c8a7977e9
commit
d74a7c17d4
|
@ -1203,8 +1203,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
private void clearExpanded(TupleMessageEx message) {
|
||||
if (compact) {
|
||||
tvFrom.setSingleLine(true);
|
||||
tvSubject.setSingleLine(!"full".equals(subject_ellipsize));
|
||||
if (tvFrom.getMaxLines() > 1)
|
||||
tvFrom.setSingleLine(true);
|
||||
boolean full = "full".equals(subject_ellipsize);
|
||||
if (full ? tvSubject.getMaxLines() == 1 : tvSubject.getMaxLines() > 1)
|
||||
tvSubject.setSingleLine(!full);
|
||||
}
|
||||
|
||||
tvPreview.setVisibility(
|
||||
|
|
Loading…
Reference in New Issue