2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 18:07:55 +00:00

Don't send reply actions

They are already handles by another codepath
This commit is contained in:
Nicolas Fella 2019-03-22 18:19:46 +01:00
parent c2cd60773b
commit 5f70db7568

View File

@ -268,8 +268,8 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
actions.put(key, new LinkedList<>()); actions.put(key, new LinkedList<>());
JSONArray jsonArray = new JSONArray(); JSONArray jsonArray = new JSONArray();
for (Notification.Action action : notification.actions) { for (Notification.Action action : notification.actions) {
if (null == action.title) if (null == action.title || (action.getRemoteInputs() != null && action.getRemoteInputs().length > 0))
break; continue;
jsonArray.put(action.title.toString()); jsonArray.put(action.title.toString());
actions.get(key).add(action); actions.get(key).add(action);
} }