mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-17 21:06:48 +01:00
Log the incoming notification flags.
Should help further diagnosing #456
This commit is contained in:
parent
1f1a34cf25
commit
861c655b5d
@ -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
|
//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) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((notification.flags & Notification.FLAG_ONGOING_EVENT) == Notification.FLAG_ONGOING_EVENT) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user