1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-17 10:54:03 +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 java.io.IOException;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper; 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 { public class AmazfitBipSSupport extends AmazfitBipSupport {
@ -31,6 +31,11 @@ public class AmazfitBipSSupport extends AmazfitBipSupport {
return (byte) 0x80; return (byte) 0x80;
} }
@Override
public void onNotification(NotificationSpec notificationSpec) {
super.sendNotificationNew(notificationSpec, true);
}
@Override @Override
protected byte getAuthFlags() { protected byte getAuthFlags() {
return 0x00; return 0x00;