From cfc310692fe0f865e4117681c2d330ebca43e649 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 3 Sep 2017 14:37:32 +0200 Subject: [PATCH] Amazfit Bip: Fix call notification with unknown caller --- CHANGELOG.md | 1 + .../devices/amazfitbip/AmazfitBipTextNotificationStrategy.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2802fdf1..4656ac9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Initial NO.1 F1 support * Amazfit Bip: Display GPS firmware version * Amazfit Bip: Fix E-Mail notifications +* Amazfit Bip: Fix call notification with unknown caller * Pebble: Fix crash when takeing screenshots on Android 8.0 (Oreo) * Pebble: Support some google app icons * Pebble: try to support spotify diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipTextNotificationStrategy.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipTextNotificationStrategy.java index d7c9fac6..866f2f30 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipTextNotificationStrategy.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/amazfitbip/AmazfitBipTextNotificationStrategy.java @@ -40,7 +40,7 @@ class AmazfitBipTextNotificationStrategy extends Mi2TextNotificationStrategy { @Override protected void sendCustomNotification(VibrationProfile vibrationProfile, SimpleNotification simpleNotification, BtLEAction extraAction, TransactionBuilder builder) { - if (simpleNotification != null && !StringUtils.isEmpty(simpleNotification.getMessage())) { + if (simpleNotification != null) { sendAlert(simpleNotification, builder); } }