From 26b321ee76f6e654581c78c522b448a145154ed7 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 13 Dec 2014 21:45:41 -0800 Subject: [PATCH] Do not send notifications with the flag "local only" --- .../Plugins/NotificationsPlugin/NotificationsPlugin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java index 19adfe7f..f54c48f5 100644 --- a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java @@ -201,8 +201,9 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver. Notification notification = statusBarNotification.getNotification(); if ((notification.flags & Notification.FLAG_FOREGROUND_SERVICE) != 0 - || (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0 ) { - //This is not a notification! + || (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0 + || (notification.flags & Notification.FLAG_LOCAL_ONLY) != 0) { + //This is not a notification we want! return; }