Check daily rules

This commit is contained in:
M66B 2022-12-23 16:39:24 +01:00
parent d718c7a6a6
commit e49cf7a529
1 changed files with 5 additions and 0 deletions

View File

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