From 861c655b5d864455ec37b5602038fb0c4fad3b76 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sun, 18 Dec 2016 10:40:30 +0100 Subject: [PATCH] Log the incoming notification flags. Should help further diagnosing #456 --- .../gadgetbridge/externalevents/NotificationListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java index 0c29c664..b8208441 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java @@ -197,12 +197,12 @@ 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) { - LOG.info("Not forwarding notification, FLAG_GROUP_SUMMARY is set"); + LOG.info("Not forwarding notification, FLAG_GROUP_SUMMARY is set. Notification flags: " + notification.flags); return; } if ((notification.flags & Notification.FLAG_ONGOING_EVENT) == Notification.FLAG_ONGOING_EVENT) { - LOG.info("Not forwarding notification, FLAG_ONGOING_EVENT is set"); + LOG.info("Not forwarding notification, FLAG_ONGOING_EVENT is set. Notification flags: " + notification.flags); return; }