diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-09-06 12:14:49 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-09-07 20:19:48 +0200 |
commit | c6428e4af7ca1cc38a8b9ccf7380d526ddd80507 (patch) | |
tree | b8c7bc69cf50fbd11ebf6a8936eff716b2ca25f8 /src/main/java/de/pixart/messenger/services/NotificationService.java | |
parent | e8af2325528e1d887d2e1325e3c5f4745526a3d4 (diff) |
remove explicit pebble support. treat as wear device
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index 62ca32ced..48bb1bda9 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -70,28 +70,6 @@ public class NotificationService { ); } - public void notifyPebble(final Message message) { - final Intent i = new Intent("com.getpebble.action.SEND_NOTIFICATION"); - - final Conversation conversation = message.getConversation(); - final JSONObject jsonData = new JSONObject(new HashMap<String, String>(2) {{ - put("title", conversation.getName()); - put("body", message.getBody()); - }}); - final String notificationData = new JSONArray().put(jsonData).toString(); - - 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); - } - - public boolean notificationsEnabled() { return mXmppConnectionService.getPreferences().getBoolean("show_notification", true); } @@ -167,9 +145,6 @@ public class NotificationService { && !account.inGracePeriod() && !this.inMiniGracePeriod(account); updateNotification(doNotify); - if (doNotify) { - notifyPebble(message); - } } } |