From cd5bc17176e48a8e034c8e06a594803f133533c8 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 24 Dec 2018 17:21:06 +0100 Subject: [PATCH] [ReceiveNotifications] Honor silent property Summary: Don't show silent notifications. With D17776 we don't send silent any more, but we might again in the future. Reviewers: #kde_connect, albertvaka Reviewed By: #kde_connect, albertvaka Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D17777 --- .../ReceiveNotificationsPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java index be52afb6..5c1fcea5 100644 --- a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java @@ -75,6 +75,10 @@ public class ReceiveNotificationsPlugin extends Plugin { return true; } + if (np.getBoolean("silent", false)) { + return true; + } + PendingIntent resultPendingIntent = PendingIntent.getActivity( context, 0,