Close notification fix

This commit is contained in:
Jens 2023-05-08 23:21:44 +02:00
parent c464a9d71f
commit 8653e4853b
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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
* Removed: Removed toasts for computer connection/disconnection
* Fixed: Closing notification didn't work if Automation's own service notification was hidden