From e49cf7a529e7775b52d599afa9943d98217604ef Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 23 Dec 2022 16:39:24 +0100 Subject: [PATCH] Check daily rules --- app/src/main/java/eu/faircode/email/FragmentRule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index a0584067d4..67f902418b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -1313,6 +1313,7 @@ public class FragmentRule extends FragmentBase { Bundle args = new Bundle(); args.putLong("folder", folder); + args.putBoolean("daily", cbDaily.isChecked()); args.putString("condition", jcondition.toString()); args.putString("action", jaction.toString()); @@ -1669,6 +1670,7 @@ public class FragmentRule extends FragmentBase { @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { long folder = getArguments().getLong("folder"); + boolean daily = getArguments().getBoolean("daily"); String condition = getArguments().getString("condition"); String action = getArguments().getString("action"); @@ -1691,6 +1693,7 @@ public class FragmentRule extends FragmentBase { final Bundle args = new Bundle(); args.putLong("folder", folder); + args.putBoolean("daily", daily); args.putString("condition", condition); args.putString("action", action); @@ -1716,6 +1719,7 @@ public class FragmentRule extends FragmentBase { protected Integer onExecute(Context context, Bundle args) throws Throwable { EntityRule rule = new EntityRule(); rule.folder = args.getLong("folder"); + rule.daily = args.getBoolean("daily"); rule.condition = args.getString("condition"); rule.action = args.getString("action"); @@ -1779,6 +1783,7 @@ public class FragmentRule extends FragmentBase { protected List onExecute(Context context, Bundle args) throws Throwable { EntityRule rule = new EntityRule(); rule.folder = args.getLong("folder"); + rule.daily = args.getBoolean("daily"); rule.condition = args.getString("condition"); rule.action = args.getString("action"); rule.validate(context);