diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index 560b17d..95f7c94 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -111,8 +111,8 @@ public class Actions public static void closeNotification(Action action) { NotificationManager nm = (NotificationManager) Miscellaneous.getAnyContext().getSystemService(Context.NOTIFICATION_SERVICE); - for(StatusBarNotification n : nm.getActiveNotifications()) - { +// for(StatusBarNotification n : nm.getActiveNotifications()) +// { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { String[] params = action.getParameter2().split(Action.actionParameter2Split); @@ -192,7 +192,7 @@ public class Actions Miscellaneous.logEvent("i", "NotificationCloseCheck", "NotificationListener instance is null. Can\'t close notification.", 3); } } - } +// } } public static void sendBroadcast(Context context, String action) diff --git a/fastlane/metadata/android/en-US/changelogs/132.txt b/fastlane/metadata/android/en-US/changelogs/132.txt index 40c910b..4cf78a2 100644 --- a/fastlane/metadata/android/en-US/changelogs/132.txt +++ b/fastlane/metadata/android/en-US/changelogs/132.txt @@ -1,3 +1,4 @@ * Fixed: Run executable action - when editing values were not loaded in editor * Added: Variables usable in intent parameters -* Removed: Removed toasts for computer connection/disconnection \ No newline at end of file +* Removed: Removed toasts for computer connection/disconnection +* Fixed: Closing notification didn't work if Automation's own service notification was hidden \ No newline at end of file