1
0
Fork 0
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:
M66B 2022-03-22 11:23:05 +01:00
parent 22778ca685
commit 0cce3c808d

View file

@ -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")));