aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-09-06 12:14:49 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-09-06 12:14:49 +0200
commit257d1e42d82616205a6e0db4521c31d60912f81a (patch)
treee20e4d89a63882dae17cc920ff4764df7d960c3b /src/main/java/eu
parent7e811498690a27a8f1b06feedfbc2a1dbe129cd0 (diff)
remove explicit pebble support. treat as wear device
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/services/NotificationService.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java
index 74a94c3f..fe9215d4 100644
--- a/src/main/java/eu/siacs/conversations/services/NotificationService.java
+++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java
@@ -71,28 +71,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);
}
@@ -163,9 +141,6 @@ public class NotificationService {
&& !account.inGracePeriod()
&& !this.inMiniGracePeriod(account);
updateNotification(doNotify);
- if (doNotify) {
- notifyPebble(message);
- }
}
}