From 3282e329f36b3d3325a8c34c702bca29885bf910 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 30 Oct 2017 09:03:40 +0100 Subject: [PATCH] Mi Band 2: Fix bad copy and paste error that lead to Mi Band 2 being detected as Amazfit Bip Fixes #859 --- .../gadgetbridge/devices/huami/HuamiCoordinator.java | 5 ----- .../devices/huami/miband2/MiBand2Coordinator.java | 2 +- .../devices/huami/miband2/MiBand2HRXCoordinator.java | 5 +++++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiCoordinator.java index c38ac45e7..a920ff3d8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiCoordinator.java @@ -58,11 +58,6 @@ import nodomain.freeyourgadget.gadgetbridge.util.Prefs; public abstract class HuamiCoordinator extends AbstractDeviceCoordinator { private static final Logger LOG = LoggerFactory.getLogger(HuamiCoordinator.class); - @Override - public DeviceType getDeviceType() { - return DeviceType.MIBAND2; - } - @Override public Class getPairingActivity() { return MiBandPairingActivity.class; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2Coordinator.java index faadc311f..af1ce8939 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2Coordinator.java @@ -37,7 +37,7 @@ public class MiBand2Coordinator extends HuamiCoordinator { @Override public DeviceType getDeviceType() { - return DeviceType.AMAZFITBIP; + return DeviceType.MIBAND2; } @NonNull diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2HRXCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2HRXCoordinator.java index 2f26c880c..504158b95 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2HRXCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband2/MiBand2HRXCoordinator.java @@ -33,6 +33,11 @@ import nodomain.freeyourgadget.gadgetbridge.model.DeviceType; public class MiBand2HRXCoordinator extends HuamiCoordinator { private static final Logger LOG = LoggerFactory.getLogger(MiBand2HRXCoordinator.class); + @Override + public DeviceType getDeviceType() { + return DeviceType.MIBAND2; + } + @NonNull @Override public DeviceType getSupportedType(GBDeviceCandidate candidate) {