From 4e32004ca9c814ad6104fe94e94ecdaaf5d20b8a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 13 Jul 2019 09:29:29 +0200 Subject: [PATCH] Set new rule name to subject --- app/src/main/java/eu/faircode/email/FragmentRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index 3aff29e104..0541bb1ae6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -532,7 +532,7 @@ public class FragmentRule extends FragmentBase { JSONObject jsubject = jcondition.optJSONObject("subject"); JSONObject jheader = jcondition.optJSONObject("header"); - etName.setText(rule == null ? null : rule.name); + etName.setText(rule == null ? args.getString("subject") : rule.name); etOrder.setText(rule == null ? null : Integer.toString(rule.order)); cbEnabled.setChecked(rule == null || rule.enabled); cbStop.setChecked(rule != null && rule.stop);