From f39d8cd2e25456fe63cd75aa803e4f116bebe61b Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sat, 2 Sep 2017 23:24:52 +0200 Subject: [PATCH] Amazfit Bip: Use AlertCategory.Email for email Somehow the custom icon for email no longer works with never firmwares --- .../service/devices/amazfitbip/AmazfitBipSupport.java | 4 ++++ 1 file changed, 4 insertions(+) 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 fe23fa7c..23b2f37b 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 @@ -89,6 +89,10 @@ public class AmazfitBipSupport extends MiBand2Support { if (notificationSpec.type == NotificationType.GENERIC_SMS) { alertCategory = AlertCategory.SMS; } + // EMAIL icon does not work in FW 0.0.8.74, it did in 0.0.7.90 + else if (notificationSpec.type == NotificationType.GENERIC_EMAIL) { + alertCategory = AlertCategory.Email; + } NewAlert alert = new NewAlert(alertCategory, 1, message, customIconId); profile.newAlert(builder, alert);