Rework
This commit is contained in:
		@@ -198,7 +198,7 @@ public class LocationProvider
 | 
			
		||||
									setSpeed(currentSpeed);
 | 
			
		||||
 | 
			
		||||
									// execute matching rules containing speed
 | 
			
		||||
									ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesBySpeed();
 | 
			
		||||
									ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.speed);
 | 
			
		||||
									for (Rule oneRule : ruleCandidates)
 | 
			
		||||
									{
 | 
			
		||||
										if(oneRule.getsGreenLight(this.getParentService()))
 | 
			
		||||
 
 | 
			
		||||
@@ -16,6 +16,7 @@ import com.jens.automation2.PointOfInterest;
 | 
			
		||||
import com.jens.automation2.R;
 | 
			
		||||
import com.jens.automation2.Rule;
 | 
			
		||||
import com.jens.automation2.Settings;
 | 
			
		||||
import com.jens.automation2.Trigger;
 | 
			
		||||
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
 | 
			
		||||
@@ -144,7 +145,7 @@ public class WifiBroadcastReceiver extends BroadcastReceiver
 | 
			
		||||
	
 | 
			
		||||
	public static void findRules(AutomationService automationServiceInstance)
 | 
			
		||||
	{		
 | 
			
		||||
		ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByWifiConnection();
 | 
			
		||||
		ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger.Trigger_Enum.wifiConnection);
 | 
			
		||||
		for(Rule oneRule : ruleCandidates)
 | 
			
		||||
		{
 | 
			
		||||
			if(oneRule.getsGreenLight(automationServiceInstance))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user