huawei: Honor Watch 4 workaround for GetNotificationConstraintsRequest

* Watch stop responging after getting this request, so disable it for now
This commit is contained in:
Vitaliy Tomin
2025-03-26 15:45:32 +08:00
committed by José Rebelo
parent f354941bb6
commit 4b2c1089a9

View File

@@ -39,7 +39,8 @@ public class GetNotificationConstraintsRequest extends Request {
@Override @Override
protected boolean requestSupported() { protected boolean requestSupported() {
return supportProvider.getHuaweiCoordinator().supportsNotificationAlert() && supportProvider.getProtocolVersion() == 2 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 @Override