From 0cce3c808d492db8b7594253895f538a705c3325 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 22 Mar 2022 11:23:05 +0100 Subject: [PATCH] List rule condition has attachments --- app/src/main/java/eu/faircode/email/AdapterRule.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/AdapterRule.java b/app/src/main/java/eu/faircode/email/AdapterRule.java index f17a3cb0ad..b5698192ef 100644 --- a/app/src/main/java/eu/faircode/email/AdapterRule.java +++ b/app/src/main/java/eu/faircode/email/AdapterRule.java @@ -129,6 +129,9 @@ public class AdapterRule extends RecyclerView.Adapter { if (jcondition.has("subject")) conditions.add(new Pair<>(context.getString(R.string.title_rule_subject), jcondition.getJSONObject("subject").optString("value"))); + if (jcondition.optBoolean("attachments")) + conditions.add(new Pair<>(context.getString(R.string.title_rule_attachments), + null)); if (jcondition.has("header")) conditions.add(new Pair<>(context.getString(R.string.title_rule_header), jcondition.getJSONObject("header").optString("value")));