mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Pebble: Fix regression causing "Open on Phone" and "Dismiss" to appear on Pebble notification with no corresponding Android notification (i.e. PebbleKit notifications)
This commit is contained in:
parent
086fc75629
commit
f3e16c5b1d
@ -485,8 +485,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
|
||||
@Override
|
||||
public byte[] encodeNotification(NotificationSpec notificationSpec) {
|
||||
//TODO: simplify this logic? is hasHandle still needed?
|
||||
boolean hasHandle = notificationSpec.getId() != -1 && notificationSpec.phoneNumber == null;
|
||||
boolean hasHandle = notificationSpec.sourceAppId != null;
|
||||
int id = notificationSpec.getId() != -1 ? notificationSpec.getId() : mRandom.nextInt();
|
||||
String title;
|
||||
String subtitle = null;
|
||||
|
Loading…
Reference in New Issue
Block a user