Check with rule name

pull/212/head
M66B 2 years ago
parent e0f7090975
commit abaa1fd1eb

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

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

Loading…
Cancel
Save