mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-01 19:06:06 +02:00
Garmin: Fix reply to sms
This commit is contained in:
parent
2118a1784a
commit
207ed7ee19
|
@ -220,6 +220,12 @@ public class DebugActivity extends AbstractGBActivity {
|
||||||
replyAction.title = "Reply";
|
replyAction.title = "Reply";
|
||||||
replyAction.type = NotificationSpec.Action.TYPE_SYNTECTIC_REPLY_PHONENR;
|
replyAction.type = NotificationSpec.Action.TYPE_SYNTECTIC_REPLY_PHONENR;
|
||||||
notificationSpec.attachedActions.add(replyAction);
|
notificationSpec.attachedActions.add(replyAction);
|
||||||
|
} else if (notificationSpec.type == NotificationType.CONVERSATIONS) {
|
||||||
|
// REPLY action
|
||||||
|
NotificationSpec.Action replyAction = new NotificationSpec.Action();
|
||||||
|
replyAction.title = "Reply";
|
||||||
|
replyAction.type = NotificationSpec.Action.TYPE_WEARABLE_REPLY;
|
||||||
|
notificationSpec.attachedActions.add(replyAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
GBApplication.deviceService().onNotification(notificationSpec);
|
GBApplication.deviceService().onNotification(notificationSpec);
|
||||||
|
|
|
@ -347,6 +347,7 @@ public class NotificationsHandler implements MessageHandler {
|
||||||
for (NotificationSpec.Action action : notificationSpec.attachedActions) {
|
for (NotificationSpec.Action action : notificationSpec.attachedActions) {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case NotificationSpec.Action.TYPE_WEARABLE_REPLY:
|
case NotificationSpec.Action.TYPE_WEARABLE_REPLY:
|
||||||
|
case NotificationSpec.Action.TYPE_SYNTECTIC_REPLY_PHONENR:
|
||||||
garminActions.add(encodeNotificationAction(NotificationAction.REPLY_MESSAGES, action.title));
|
garminActions.add(encodeNotificationAction(NotificationAction.REPLY_MESSAGES, action.title));
|
||||||
break;
|
break;
|
||||||
case NotificationSpec.Action.TYPE_SYNTECTIC_DISMISS:
|
case NotificationSpec.Action.TYPE_SYNTECTIC_DISMISS:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user