Pebble: make sure to not display "open on phone" and "dismiss" when the source of a notification was our AlarmClockReceiver

here
Andreas Shimokawa 2017-02-10 23:11:21 +01:00
parent ee28ccd4fe
commit f956d94181
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ public class AlarmClockReceiver extends BroadcastReceiver {
NotificationSpec spec = new NotificationSpec();
spec.type = NotificationType.GENERIC_ALARM_CLOCK;
spec.id = lastId;
spec.sourceName = "ALARMCLOCKRECEIVER";
// can we get the alarm title somehow?
GBApplication.deviceService().onNotification(spec);
}

View File

@ -574,7 +574,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
byte dismiss_action_id;
if (hasHandle) {
if (hasHandle && !"ALARMCLOCKRECEIVER".equals(sourceName)) {
actions_count = 3;
dismiss_string = "Dismiss";
dismiss_action_id = 0x02;