List rule condition has attachments

pull/207/head
M66B 3 years ago
parent 22778ca685
commit 0cce3c808d

@ -129,6 +129,9 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
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")));

Loading…
Cancel
Save