From 53007a8bad67ba4a9cb61a7ae60c385a79cebd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Wed, 27 Mar 2024 23:35:15 +0000 Subject: [PATCH] Bangle.js: Allow reply to non-sms notifications --- .../service/devices/banglejs/BangleJSDeviceSupport.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java index 1d36a8adf..f5938f76c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java @@ -649,8 +649,10 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport { * they use a handle that was provided in an action list on the onNotification.. event */ if (deviceEvtNotificationControl.event == GBDeviceEventNotificationControl.Event.REPLY) { Long foundHandle = mNotificationReplyAction.lookup((int)deviceEvtNotificationControl.handle); - if (foundHandle!=null) + LOG.debug("Got notification reply: handle={} foundHandle={}", deviceEvtNotificationControl.handle, foundHandle); + if (foundHandle != null) { deviceEvtNotificationControl.handle = foundHandle; + } } evaluateGBDeviceEvent(deviceEvtNotificationControl); } @@ -1280,7 +1282,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport { if (notificationSpec.attachedActions!=null) for (int i=0;i