From cd5af1e66a90c2232a2702ea9242a3bfc7d357c4 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 16 Aug 2017 20:55:20 +0200 Subject: [PATCH] Amazfit Bip: implement find lost device by simulating a phone call from "Gadgetbridge" --- .../service/devices/amazfitbip/AmazfitBipSupport.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipSupport.java index d6ec8cad5..1a874e64c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipSupport.java @@ -17,6 +17,7 @@ package nodomain.freeyourgadget.gadgetbridge.service.devices.amazfitbip; import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventCallControl; +import nodomain.freeyourgadget.gadgetbridge.model.CallSpec; import nodomain.freeyourgadget.gadgetbridge.service.devices.miband.NotificationStrategy; import nodomain.freeyourgadget.gadgetbridge.service.devices.miband2.MiBand2Support; @@ -28,7 +29,10 @@ public class AmazfitBipSupport extends MiBand2Support { @Override public void onFindDevice(boolean start) { - // Prevent notification spamming from MiBand2Support for now + CallSpec callSpec = new CallSpec(); + callSpec.command = start ? CallSpec.CALL_INCOMING : CallSpec.CALL_END; + callSpec.name = "Gadgetbridge"; + onSetCallState(callSpec); } @Override