mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
InifiniTime: Fix null being displayed on empty notifications
This commit is contained in:
+3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user