From b09879dd311f165adfb317ded20ce3ff84ad57eb Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Fri, 20 Oct 2023 23:26:43 +0200 Subject: [PATCH] Mi Watch Lite: disable some features that do not exist on the watch --- .../miwatch/MiWatchLiteCoordinator.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java index 51a9b17e6..1ab94f303 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi/miwatch/MiWatchLiteCoordinator.java @@ -27,6 +27,7 @@ import java.util.regex.Pattern; import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler; import nodomain.freeyourgadget.gadgetbridge.devices.xiaomi.XiaomiCoordinator; +import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport; import nodomain.freeyourgadget.gadgetbridge.service.devices.xiaomi.XiaomiPlaintextSupport; @@ -58,6 +59,35 @@ public class MiWatchLiteCoordinator extends XiaomiCoordinator { return R.drawable.ic_device_amazfit_bip_disabled; } + @Override + public boolean supportsCalendarEvents() { + return false; + } + + @Override + public boolean supportsStressMeasurement() { + return false; + } + + @Override + public boolean supportsSpo2() { + return false; + } + + @Override + public boolean supportsRealtimeData() { + return false; + } + + @Override + public int getAlarmSlotCount(final GBDevice device) { + return 0; + } + @Override + public int getReminderSlotCount(final GBDevice device) { + return 0; + } + @NonNull @Override public Class getDeviceSupportClass() {