forked from jens/Automation
Close notification fix
This commit is contained in:
parent
c464a9d71f
commit
8653e4853b
@ -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)
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user