mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-06 05:16:41 +02:00
Amazfit Bip S: Fix crash with notifictions with only a title (GitNex does this)
Probably affects other newer Huami devices
This commit is contained in:
parent
c7f75c3dc3
commit
d0c5ffec28
|
@ -645,6 +645,9 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||
if (notificationSpec.body != null) {
|
||||
message += StringUtils.truncate(notificationSpec.body, 512);
|
||||
}
|
||||
if (notificationSpec.body == null && notificationSpec.subject == null) {
|
||||
message += " "; // if we have no body we have to send at least something on some devices, else they reboot (Bip S)
|
||||
}
|
||||
|
||||
try {
|
||||
TransactionBuilder builder = performInitialized("new notification");
|
||||
|
|
Loading…
Reference in New Issue
Block a user