diff --git a/src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java b/src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java index 94b6ea86..9820cec5 100644 --- a/src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java +++ b/src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java @@ -176,6 +176,12 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver. public void sendNotification(StatusBarNotification statusBarNotification, boolean requestAnswer) { Notification notification = statusBarNotification.getNotification(); + + if ((notification.flags & Notification.FLAG_FOREGROUND_SERVICE) != 0) { + //This is not a notification! + return; + } + NotificationId id = NotificationId.fromNotification(statusBarNotification); NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_NOTIFICATION);