Show important icon in lists only

pull/214/head
M66B 10 months ago
parent cd8bd3eae6
commit 95669e72fa

@ -978,10 +978,15 @@ public class FragmentMessages extends FragmentBase
if (!ch && !dh) if (!ch && !dh)
return null; return null;
if (EntityMessage.PRIORITIY_HIGH.equals(message.importance)) { Integer importance =
(viewType == AdapterMessage.ViewType.UNIFIED ||
viewType == AdapterMessage.ViewType.FOLDER
? message.importance : null);
if (EntityMessage.PRIORITIY_HIGH.equals(importance)) {
if (pos > 0) if (pos > 0)
return null; return null;
} else if (EntityMessage.PRIORITIY_LOW.equals(message.importance)) { } else if (EntityMessage.PRIORITIY_LOW.equals(importance)) {
if (prev != null && EntityMessage.PRIORITIY_LOW.equals(prev.importance)) if (prev != null && EntityMessage.PRIORITIY_LOW.equals(prev.importance))
return null; return null;
} else if (pos > 0) { } else if (pos > 0) {
@ -1031,9 +1036,9 @@ public class FragmentMessages extends FragmentBase
vSeparator.setVisibility(View.GONE); vSeparator.setVisibility(View.GONE);
} }
if (EntityMessage.PRIORITIY_HIGH.equals(message.importance)) if (EntityMessage.PRIORITIY_HIGH.equals(importance))
tvDate.setText(R.string.title_important); tvDate.setText(R.string.title_important);
else if (EntityMessage.PRIORITIY_LOW.equals(message.importance)) else if (EntityMessage.PRIORITIY_LOW.equals(importance))
tvDate.setText(R.string.title_unimportant); tvDate.setText(R.string.title_unimportant);
else else
tvDate.setText(date_week tvDate.setText(date_week

Loading…
Cancel
Save