This commit is contained in:
jens committed 2021-12-04 02:39:37 +01:00
1 parent d28ee8d00d
commit cdf1a8baa8
21 files changed
+136 -1300

No files matched your search

@@ -201,7 +201,7 @@ public class LocationProvider
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesBySpeed();
for (Rule oneRule : ruleCandidates)
{
if (oneRule.applies(this.getParentService()))
if (oneRule.applies(this.getParentService()) && oneRule.hasNotAppliedSinceLastExecution())
oneRule.activate(getParentService(), false);
}
}
@@ -147,7 +147,7 @@ public class WifiBroadcastReceiver extends BroadcastReceiver
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByWifiConnection();
for(Rule oneRule : ruleCandidates)
{
if(oneRule.applies(automationServiceInstance))
if(oneRule.applies(automationServiceInstance) && oneRule.hasNotAppliedSinceLastExecution())
oneRule.activate(automationServiceInstance, false);
}
}