1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Mi Band 2: prevent detecting as Mi Band HRX in all cases, fixes HR not visible in charts

Fixes #862
This commit is contained in:
Andreas Shimokawa 2017-11-01 22:10:06 +01:00
parent 72f76b60d3
commit e2546f772a

View File

@ -53,6 +53,11 @@ public class MiBand2HRXCoordinator extends HuamiCoordinator {
return DeviceType.UNKNOWN; return DeviceType.UNKNOWN;
} }
@Override
public boolean supports(GBDevice device) {
return getDeviceType().equals(device.getType()) && device.getName().equals("Mi Band HRX");
}
@Override @Override
public InstallHandler findInstallHandler(Uri uri, Context context) { public InstallHandler findInstallHandler(Uri uri, Context context) {
return null; return null;