2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

[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
This commit is contained in:
Nicolas Fella
2018-12-24 17:21:06 +01:00
parent b4df9f0cb6
commit cd5bc17176

View File

@@ -75,6 +75,10 @@ public class ReceiveNotificationsPlugin extends Plugin {
return true;
}
if (np.getBoolean("silent", false)) {
return true;
}
PendingIntent resultPendingIntent = PendingIntent.getActivity(
context,
0,