fix in DateTimeTrigger management and executions when service already stopped
This commit is contained in:
parent
0d3a13e753
commit
391edc59bf
@ -233,12 +233,16 @@ public class Rule implements Comparable<Rule>
|
||||
}
|
||||
|
||||
if(!changeExistingRule)
|
||||
{
|
||||
for (Rule rule : Rule.ruleCollection)
|
||||
{
|
||||
if (rule.getName().equals(this.getName()))
|
||||
{
|
||||
Toast.makeText(context, context.getResources().getString(R.string.anotherRuleByThatName), Toast.LENGTH_LONG).show();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this.getTriggerSet().size() == 0)
|
||||
{
|
||||
|
@ -225,6 +225,11 @@ public class ActivityManageRule extends Activity
|
||||
loadFormValuesToVariable();
|
||||
if(ruleToEdit.change(context))
|
||||
{
|
||||
for(Rule r : Rule.ruleCollection)
|
||||
{
|
||||
r.get
|
||||
}
|
||||
|
||||
ActivityPermissions.getRequiredPermissions(false);
|
||||
finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user