From 4b2c1089a9d33737b01c22ca82b4fc16d8a24438 Mon Sep 17 00:00:00 2001 From: Vitaliy Tomin Date: Wed, 26 Mar 2025 15:45:32 +0800 Subject: [PATCH] huawei: Honor Watch 4 workaround for GetNotificationConstraintsRequest * Watch stop responging after getting this request, so disable it for now --- .../huawei/requests/GetNotificationConstraintsRequest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/GetNotificationConstraintsRequest.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/GetNotificationConstraintsRequest.java index a9eb3bb6c..abb8698d3 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/GetNotificationConstraintsRequest.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/GetNotificationConstraintsRequest.java @@ -39,7 +39,8 @@ public class GetNotificationConstraintsRequest extends Request { @Override protected boolean requestSupported() { return supportProvider.getHuaweiCoordinator().supportsNotificationAlert() && supportProvider.getProtocolVersion() == 2 - && supportProvider.getCoordinator().getDeviceType() != DeviceType.HUAWEIBANDAW70; // Bit of a workaround, there is probably some capabilities this actually depends on + && supportProvider.getCoordinator().getDeviceType() != DeviceType.HUAWEIBANDAW70 + && supportProvider.getCoordinator().getDeviceType() != DeviceType.HONORWATCH4; // Bit of a workaround, there is probably some capabilities this actually depends on } @Override