mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Small behavior improvement
This commit is contained in:
parent
f1f78c0ef2
commit
1456fdaedd
1 changed files with 5 additions and 2 deletions
|
@ -671,6 +671,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
String sort = prefs.getString("sort", "time");
|
||||
inDate.setVisibility(date_fixed && "time".equals(sort) ? View.INVISIBLE : View.GONE);
|
||||
if (cards)
|
||||
vSeparatorDate.setVisibility(View.GONE);
|
||||
if (date_bold)
|
||||
tvFixedDate.setTypeface(Typeface.DEFAULT_BOLD);
|
||||
|
||||
|
@ -690,8 +692,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
if (i == 0 && date_fixed && "time".equals(adapter.getSort())) {
|
||||
TupleMessageEx top = adapter.getItemAtPosition(pos);
|
||||
tvFixedDate.setVisibility(top == null ? View.GONE : View.VISIBLE);
|
||||
vSeparatorDate.setVisibility(top == null || cards ? View.GONE : View.VISIBLE);
|
||||
tvFixedDate.setVisibility(top == null ? View.INVISIBLE : View.VISIBLE);
|
||||
if (!cards)
|
||||
vSeparatorDate.setVisibility(top == null ? View.INVISIBLE : View.VISIBLE);
|
||||
tvFixedDate.setText(top == null ? null : getRelativeDate(top.received, parent.getContext()));
|
||||
} else {
|
||||
View header = getView(view, parent, pos);
|
||||
|
|
Loading…
Reference in a new issue