diff options
author | Andreas Shimokawa <shimokawa@fsfe.org> | 2015-05-08 21:36:20 +0200 |
---|---|---|
committer | Andreas Shimokawa <shimokawa@fsfe.org> | 2015-05-08 21:36:20 +0200 |
commit | 9e78e3e09da47463d97a25acd051a8218fa98e54 (patch) | |
tree | 21ef237e2c3fca2be70a0e0ded92c16c058f6e4b /src/main/java | |
parent | d9e5035c084a5bf307d88fb4b69c585ffb5e859b (diff) |
only forward incoming chat messages to Pebble App and Gadgetbridge
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); } |