diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/AbstractDeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/AbstractDeviceCoordinator.java index 751b2790..88da93eb 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/AbstractDeviceCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/AbstractDeviceCoordinator.java @@ -23,6 +23,7 @@ public abstract class AbstractDeviceCoordinator implements DeviceCoordinator { return new GBDevice(candidate.getDevice().getAddress(), candidate.getName(), getDeviceType()); } + @Override public boolean allowFetchActivityData(GBDevice device) { return device.isInitialized() && !device.isBusy() && supportsActivityDataFetching(); } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBand2Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBand2Coordinator.java index fb680b3b..3de8fea9 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBand2Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBand2Coordinator.java @@ -8,6 +8,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler; +import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate; import nodomain.freeyourgadget.gadgetbridge.model.DeviceType; @@ -35,6 +36,21 @@ public class MiBand2Coordinator extends MiBandCoordinator { } + @Override + public boolean supportsHeartRateMeasurement(GBDevice device) { + return false; // not yet + } + + @Override + public boolean supportsAlarmConfiguration() { + return false; // not yet + } + + @Override + public boolean supportsActivityDataFetching() { + return false; // not yet + } + @Override public InstallHandler findInstallHandler(Uri uri, Context context) { return null; // not supported at the moment