mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Show important icon in lists only
This commit is contained in:
parent
cd8bd3eae6
commit
95669e72fa
1 changed files with 9 additions and 4 deletions
|
@ -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…
Reference in a new issue