mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
List rule condition has attachments
This commit is contained in:
parent
22778ca685
commit
0cce3c808d
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
||||||
if (jcondition.has("subject"))
|
if (jcondition.has("subject"))
|
||||||
conditions.add(new Pair<>(context.getString(R.string.title_rule_subject),
|
conditions.add(new Pair<>(context.getString(R.string.title_rule_subject),
|
||||||
jcondition.getJSONObject("subject").optString("value")));
|
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"))
|
if (jcondition.has("header"))
|
||||||
conditions.add(new Pair<>(context.getString(R.string.title_rule_header),
|
conditions.add(new Pair<>(context.getString(R.string.title_rule_header),
|
||||||
jcondition.getJSONObject("header").optString("value")));
|
jcondition.getJSONObject("header").optString("value")));
|
||||||
|
|
Loading…
Reference in a new issue