diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-05-09 04:37:07 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-05-09 04:37:07 +0200 |
commit | c82cdb36f6358942f987b7acccc3e4b5adf7dd87 (patch) | |
tree | 21ef237e2c3fca2be70a0e0ded92c16c058f6e4b /src/main/java | |
parent | d9e5035c084a5bf307d88fb4b69c585ffb5e859b (diff) | |
parent | 9e78e3e09da47463d97a25acd051a8218fa98e54 (diff) |
Merge pull request #1180 from ashimokawa/development
only forward incoming chat messages to Pebble App and Gadgetbridge (#1179)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/NotificationService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index fc40ce75..e111da95 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -85,7 +85,11 @@ public class NotificationService { i.putExtra("messageType", "PEBBLE_ALERT"); i.putExtra("sender", "Conversations"); /* XXX: Shouldn't be hardcoded, e.g., AbstractGenerator.APP_NAME); */ i.putExtra("notificationData", notificationData); - + // notify Pebble App + i.setPackage("com.getpebble.android"); + mXmppConnectionService.sendBroadcast(i); + // notify Gadgetbridge + i.setPackage("nodomain.freeyourgadget.gadgetbridge"); mXmppConnectionService.sendBroadcast(i); } |