Use warning color for high importance indicator

This commit is contained in:
M66B 2023-11-09 16:31:14 +01:00
parent 7a89f55649
commit 962a62f1e0
1 changed files with 2 additions and 0 deletions

View File

@ -1407,9 +1407,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (EntityMessage.PRIORITIY_HIGH.equals(message.ui_importance)) { if (EntityMessage.PRIORITIY_HIGH.equals(message.ui_importance)) {
ivImportance.setImageLevel(message.ui_importance); ivImportance.setImageLevel(message.ui_importance);
ivImportance.setImageTintList(ColorStateList.valueOf(colorWarning));
ivImportance.setVisibility(View.VISIBLE); ivImportance.setVisibility(View.VISIBLE);
} else if (EntityMessage.PRIORITIY_LOW.equals(message.ui_importance)) { } else if (EntityMessage.PRIORITIY_LOW.equals(message.ui_importance)) {
ivImportance.setImageLevel(message.ui_importance); ivImportance.setImageLevel(message.ui_importance);
ivImportance.setImageTintList(null);
ivImportance.setVisibility(View.VISIBLE); ivImportance.setVisibility(View.VISIBLE);
} else } else
ivImportance.setVisibility(View.GONE); ivImportance.setVisibility(View.GONE);