1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-27 00:38:01 +02:00

For a start, we can reuse the alert notification from Mi 1 #323

So vibration works :-)
This commit is contained in:
cpfeiffer 2016-09-20 23:41:50 +02:00
parent ccdb843b6e
commit 1bd919ccaa

View File

@ -291,16 +291,7 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
}
private NotificationStrategy getNotificationStrategy() {
if (mDeviceInfo == null) {
// not initialized yet?
return new NoNotificationStrategy();
}
if (mDeviceInfo.getFirmwareVersion() < MiBandFWHelper.FW_16779790) {
return new V1NotificationStrategy(this);
} else {
//use the new alert characteristic
return new V2NotificationStrategy(this);
}
return new V2NotificationStrategy(this);
}
static final byte[] reboot = new byte[]{MiBandService.COMMAND_REBOOT};