Check with rule name

This commit is contained in:
M66B 2023-04-22 19:05:31 +02:00
parent e0f7090975
commit abaa1fd1eb
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
long folder = getArguments().getLong("folder");
String name = getArguments().getString("name");
boolean daily = getArguments().getBoolean("daily");
String condition = getArguments().getString("condition");
String action = getArguments().getString("action");
@ -67,6 +68,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
final Bundle args = new Bundle();
args.putLong("folder", folder);
args.putString("name", name);
args.putBoolean("daily", daily);
args.putString("condition", condition);
args.putString("action", action);
@ -92,6 +94,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
@Override
protected Integer onExecute(Context context, Bundle args) throws Throwable {
EntityRule rule = new EntityRule();
rule.name = args.getString("name");
rule.folder = args.getLong("folder");
rule.daily = args.getBoolean("daily");
rule.condition = args.getString("condition");

View File

@ -1396,6 +1396,7 @@ public class FragmentRule extends FragmentBase {
Bundle args = new Bundle();
args.putLong("folder", folder);
args.putString("name", etName.getText().toString());
args.putBoolean("daily", cbDaily.isChecked());
args.putString("condition", jcondition.toString());
args.putString("action", jaction.toString());