1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Don't forward group summary notifications to the wearable, they are meant for the android device only

Possibly also related to #395
This commit is contained in:
Daniele Gobbetti 2016-09-27 17:33:10 +02:00
parent b5373d9593
commit fabc52fdad

View File

@ -193,6 +193,11 @@ public class NotificationListener extends NotificationListenerService {
}
}
//don't forward group summary notifications to the wearable, they are meant for the android device only
if ((notification.flags & Notification.FLAG_GROUP_SUMMARY) == Notification.FLAG_GROUP_SUMMARY) {
return;
}
if ((notification.flags & Notification.FLAG_ONGOING_EVENT) == Notification.FLAG_ONGOING_EVENT) {
return;
}