From 8653e4853b0539f1bca1fa861da0d1130de2d25f Mon Sep 17 00:00:00 2001 From: Jens Date: Mon, 8 May 2023 23:21:44 +0200 Subject: [PATCH] Close notification fix --- app/src/main/java/com/jens/automation2/Actions.java | 6 +++--- fastlane/metadata/android/en-US/changelogs/132.txt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) 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