1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Pebble: Fix bug for Pebble Intent Notifications not arriving on FW 2.x

This commit is contained in:
Andreas Shimokawa 2015-09-19 21:35:02 +02:00
parent 0c4dbf75e0
commit 60b24e004a

View File

@ -408,7 +408,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
@Override
public byte[] encodeGenericNotification(String title, String details, int handle, NotificationKind notificationKind) {
return encodeNotification(handle, title, null, details, NOTIFICATION_UNDEFINED, handle != -1, notificationKind);
return encodeNotification(handle != -1 ? handle : mRandom.nextInt(), title, null, details, NOTIFICATION_UNDEFINED, handle != -1, notificationKind);
}
@Override