Set new rule name to subject

This commit is contained in:
M66B 2019-07-13 09:29:29 +02:00
parent 79e40ade73
commit 4e32004ca9
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ public class FragmentRule extends FragmentBase {
JSONObject jsubject = jcondition.optJSONObject("subject"); JSONObject jsubject = jcondition.optJSONObject("subject");
JSONObject jheader = jcondition.optJSONObject("header"); 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)); etOrder.setText(rule == null ? null : Integer.toString(rule.order));
cbEnabled.setChecked(rule == null || rule.enabled); cbEnabled.setChecked(rule == null || rule.enabled);
cbStop.setChecked(rule != null && rule.stop); cbStop.setChecked(rule != null && rule.stop);