mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +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:
-5
@@ -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;
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class MiBand2Coordinator extends HuamiCoordinator {
|
||||
|
||||
@Override
|
||||
public DeviceType getDeviceType() {
|
||||
return DeviceType.AMAZFITBIP;
|
||||
return DeviceType.MIBAND2;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
+5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user