From b73077a5666f722867fb6bff6c42576ae3963c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 18 Apr 2026 09:30:08 +0100 Subject: [PATCH] Amazfit Bip S: Attempt to fix reboot on notification without title --- .../gadgetbridge/service/devices/huami/HuamiSupport.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java index e5bacd559f..f4c5c77f47 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java @@ -894,7 +894,10 @@ public abstract class HuamiSupport extends AbstractBTLESingleDeviceSupport */ public String getNotificationBody(NotificationSpec notificationSpec) { String senderOrTitle = StringUtils.getFirstOf(notificationSpec.sender, notificationSpec.title); - + if (senderOrTitle.isEmpty()) { + // if we have no title we have to send at least something on some devices, else they reboot (Bip S) + senderOrTitle = " "; + } String message = StringUtils.truncate(senderOrTitle, 32) + "\0"; if (notificationSpec.subject != null) { message += StringUtils.truncate(notificationSpec.subject, 128) + "\n\n";