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

Amazfit Bip S: Fix empty notifications

Was reported to work in  #1822
This commit is contained in:
Andreas Shimokawa 2020-03-26 23:27:35 +01:00
parent ff3ce84ba1
commit f04c9aed29

View File

@ -22,7 +22,7 @@ import android.net.Uri;
import java.io.IOException;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitbip.AmazfitBipLiteFWHelper;
import nodomain.freeyourgadget.gadgetbridge.model.NotificationSpec;
public class AmazfitBipSSupport extends AmazfitBipSupport {
@ -30,7 +30,12 @@ public class AmazfitBipSSupport extends AmazfitBipSupport {
public byte getCryptFlags() {
return (byte) 0x80;
}
@Override
public void onNotification(NotificationSpec notificationSpec) {
super.sendNotificationNew(notificationSpec, true);
}
@Override
protected byte getAuthFlags() {
return 0x00;