mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
InifiniTime: Fix null being displayed on empty notifications
This commit is contained in:
parent
44fcd454a0
commit
1bfec5b65f
@ -260,6 +260,9 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL
|
||||
TransactionBuilder builder = new TransactionBuilder("notification");
|
||||
|
||||
String message;
|
||||
if (notificationSpec.body == null) {
|
||||
notificationSpec.body = "";
|
||||
}
|
||||
|
||||
if (isFirmwareAtLeastVersion0_15()) {
|
||||
String senderOrTitle = nodomain.freeyourgadget.gadgetbridge.util.StringUtils.getFirstOf(notificationSpec.sender, notificationSpec.title);
|
||||
|
Loading…
Reference in New Issue
Block a user