mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 02:15:28 +00:00
Let time match sorting
This commit is contained in:
parent
72ede04868
commit
2eddf65035
2 changed files with 3 additions and 6 deletions
|
@ -944,7 +944,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvSize.setVisibility(
|
||||
message.totalSize != null && ("size".equals(sort) || "attachments".equals(sort))
|
||||
? View.VISIBLE : View.GONE);
|
||||
tvTime.setText(date && "time".equals(sort)
|
||||
tvTime.setText(date && FragmentMessages.SORT_DATE_HEADER.contains(sort)
|
||||
? TF.format(message.received)
|
||||
: Helper.getRelativeTimeSpanString(context, message.received));
|
||||
|
||||
|
|
|
@ -330,11 +330,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
private static final long REVIEW_ASK_DELAY = 21 * 24 * 3600 * 1000L; // milliseconds
|
||||
private static final long REVIEW_LATER_DELAY = 3 * 24 * 3600 * 1000L; // milliseconds
|
||||
|
||||
private static final List<String> SORT_DATE_HEADER = Collections.unmodifiableList(Arrays.asList(
|
||||
"time",
|
||||
"unread",
|
||||
"starred",
|
||||
"priority"
|
||||
static final List<String> SORT_DATE_HEADER = Collections.unmodifiableList(Arrays.asList(
|
||||
"time", "unread", "starred", "priority"
|
||||
));
|
||||
|
||||
private static final List<String> DUPLICATE_ORDER = Collections.unmodifiableList(Arrays.asList(
|
||||
|
|
Loading…
Add table
Reference in a new issue