InifiniTime: Fix null being displayed on empty notifications

This commit is contained in:
Andreas Shimokawa
2021-08-26 10:59:53 +02:00
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);