aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-04-21 19:39:18 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-21 19:39:18 +0200
commit767d493d0d34a09b3e605bf73ec50ead04158c9a (patch)
tree27c66f175cf3c5f3be4d102ae10bdf4504f421fe /src/main/java/de/pixart/messenger/services/XmppConnectionService.java
parentd237ade908db44051628f40f92d31f48175fb331 (diff)
Add Android Auto support to notifications
This patch adds required additions in order to show notifications in Android Auto. Messages are read aloud and voice reply is offered. The functionaliy has been tested with the Android Auto standalone app as well as with the DHU simulator as describes here: https://developer.android.com/training/auto/testing/index.html
Diffstat (limited to 'src/main/java/de/pixart/messenger/services/XmppConnectionService.java')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index d843ed2bd..0422b533c 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -153,6 +153,7 @@ public class XmppConnectionService extends Service {
}
public static final String ACTION_REPLY_TO_CONVERSATION = "reply_to_conversations";
+ public static final String ACTION_MARK_AS_READ = "mark_as_read";
public static final String ACTION_CLEAR_NOTIFICATION = "clear_notification";
public static final String ACTION_DISABLE_FOREGROUND = "disable_foreground";
public static final String ACTION_TRY_AGAIN = "try_again";
@@ -676,6 +677,9 @@ public class XmppConnectionService extends Service {
}
}
break;
+ case ACTION_MARK_AS_READ:
+ markRead(c, true);
+ break;
case AudioManager.RINGER_MODE_CHANGED_ACTION:
if (xaOnSilentMode()) {
refreshAllPresences();