mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-05 16:45:08 +00:00
Do not send notifications with the flag "local only"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user