From 25a165002cf29db6fdc7e956dd387a5ee95d0e42 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 8 Feb 2024 08:42:59 +0100 Subject: [PATCH] Added title/color for complaint flag --- app/src/main/java/eu/faircode/email/TupleKeyword.java | 3 +++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/TupleKeyword.java b/app/src/main/java/eu/faircode/email/TupleKeyword.java index 4c85a1e2d8..576da68af6 100644 --- a/app/src/main/java/eu/faircode/email/TupleKeyword.java +++ b/app/src/main/java/eu/faircode/email/TupleKeyword.java @@ -127,6 +127,8 @@ public class TupleKeyword { return context.getString(R.string.title_keyword_not_displayed); case MessageHelper.FLAG_NOT_DELIVERED: return context.getString(R.string.title_keyword_not_delivered); + case MessageHelper.FLAG_COMPLAINT: + return context.getString(R.string.title_keyword_complaint); default: return keyword; } @@ -150,6 +152,7 @@ public class TupleKeyword { return Helper.resolveColor(context, R.attr.colorVerified); case MessageHelper.FLAG_NOT_DISPLAYED: case MessageHelper.FLAG_NOT_DELIVERED: + case MessageHelper.FLAG_COMPLAINT: return Helper.resolveColor(context, androidx.appcompat.R.attr.colorError); default: diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9018708cf3..43c545ea94 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2412,6 +2412,7 @@ Delivered Not displayed Not delivered + Complaint %1$d message