mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Layout optimization
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user