1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-16 10:00:08 +02:00

Mi Band 2: Fix bad copy and paste error that lead to Mi Band 2 being detected as Amazfit Bip

Fixes #859
This commit is contained in:
Andreas Shimokawa 2017-10-30 09:03:40 +01:00
parent 958f586212
commit 3282e329f3
3 changed files with 6 additions and 6 deletions

View File

@ -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<? extends Activity> getPairingActivity() {
return MiBandPairingActivity.class;

View File

@ -37,7 +37,7 @@ public class MiBand2Coordinator extends HuamiCoordinator {
@Override
public DeviceType getDeviceType() {
return DeviceType.AMAZFITBIP;
return DeviceType.MIBAND2;
}
@NonNull

View File

@ -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) {