diff --git a/app/src/apkFlavor/java/com/jens/automation2/Rule.java b/app/src/apkFlavor/java/com/jens/automation2/Rule.java index fd26414..ef093a6 100644 --- a/app/src/apkFlavor/java/com/jens/automation2/Rule.java +++ b/app/src/apkFlavor/java/com/jens/automation2/Rule.java @@ -833,6 +833,13 @@ public class Rule implements Comparable continue; } } + else + { + if(myApp.equals(BuildConfig.APPLICATION_ID)) + { + return false; + } + } /* If there are multiple notifications ("stacked") title or text might be null: @@ -897,6 +904,13 @@ public class Rule implements Comparable if (!app.equalsIgnoreCase(myApp)) return false; } + else + { + if(myApp.equals(BuildConfig.APPLICATION_ID)) + { + return false; + } + } if (requiredTitle.length() > 0) { diff --git a/app/src/main/res/layout/activity_manage_trigger_notification.xml b/app/src/main/res/layout/activity_manage_trigger_notification.xml index 46b1f79..c2a259f 100644 --- a/app/src/main/res/layout/activity_manage_trigger_notification.xml +++ b/app/src/main/res/layout/activity_manage_trigger_notification.xml @@ -45,6 +45,18 @@ + + + + @@ -78,6 +90,13 @@ + + @@ -106,6 +125,13 @@ + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 52bd071..bff1170 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -702,4 +702,5 @@ Let nothing through Fine tuning (like allowing phone calls, picking specific numbers, etc.) can only be done from the system\'s settings. Your rules required permissions which cannot be requested from this installed flavor of Automation. + If you do not choose a specific app, but choose \"Any app\" notifications from Automation will be ignored to avoid loops. \ No newline at end of file