mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +01: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:
parent
958f586212
commit
3282e329f3
@ -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;
|
||||
|
@ -37,7 +37,7 @@ public class MiBand2Coordinator extends HuamiCoordinator {
|
||||
|
||||
@Override
|
||||
public DeviceType getDeviceType() {
|
||||
return DeviceType.AMAZFITBIP;
|
||||
return DeviceType.MIBAND2;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user