mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Added import/not important group headers
This commit is contained in:
@@ -977,7 +977,13 @@ public class FragmentMessages extends FragmentBase
|
||||
if (!ch && !dh)
|
||||
return null;
|
||||
|
||||
if (pos > 0) {
|
||||
if (EntityMessage.PRIORITIY_HIGH.equals(message.importance)) {
|
||||
if (pos > 0)
|
||||
return null;
|
||||
} else if (EntityMessage.PRIORITIY_LOW.equals(message.importance)) {
|
||||
if (EntityMessage.PRIORITIY_LOW.equals(prev.importance))
|
||||
return null;
|
||||
} else if (pos > 0) {
|
||||
Calendar cal0 = Calendar.getInstance();
|
||||
Calendar cal1 = Calendar.getInstance();
|
||||
cal0.setMinimalDaysInFirstWeek(4); // ISO 8601
|
||||
@@ -1024,9 +1030,14 @@ public class FragmentMessages extends FragmentBase
|
||||
vSeparator.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
tvDate.setText(date_week
|
||||
? getWeek(message.received, parent.getContext())
|
||||
: getRelativeDate(message.received, parent.getContext()));
|
||||
if (EntityMessage.PRIORITIY_HIGH.equals(message.importance))
|
||||
tvDate.setText(R.string.title_is_important);
|
||||
else if (EntityMessage.PRIORITIY_LOW.equals(message.importance))
|
||||
tvDate.setText(R.string.title_is_not_important);
|
||||
else
|
||||
tvDate.setText(date_week
|
||||
? getWeek(message.received, parent.getContext())
|
||||
: getRelativeDate(message.received, parent.getContext()));
|
||||
|
||||
view.setContentDescription(tvDate.getText().toString());
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
|
||||
|
||||
Reference in New Issue
Block a user