From 4bea2113fa04ec2051530cfc6498aff695543b61 Mon Sep 17 00:00:00 2001 From: jens Date: Sun, 9 Jan 2022 13:48:12 +0100 Subject: [PATCH] profile trigger --- .../main/java/com/jens/automation2/Profile.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/src/main/java/com/jens/automation2/Profile.java b/app/src/main/java/com/jens/automation2/Profile.java index 8362403..a202380 100644 --- a/app/src/main/java/com/jens/automation2/Profile.java +++ b/app/src/main/java/com/jens/automation2/Profile.java @@ -576,6 +576,20 @@ public class Profile implements Comparable { Miscellaneous.logEvent("e", "Profile " + this.getName(), context.getResources().getString(R.string.errorActivatingProfile) + " " + Log.getStackTraceString(e), 1); } + finally + { + Miscellaneous.logEvent("i", "POI", "Checking for applicable rule after profile " + this.getName() + " has been activated.", 2); + List ruleCandidates = Rule.findRuleCandidates(Trigger.Trigger_Enum.profileActive); + for(int i=0; i