Commit b375d796 authored by Nicolas Fella's avatar Nicolas Fella

Add version check

parent 6f0ed846
......@@ -267,8 +267,14 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
actions.put(key, new LinkedList<>());
JSONArray jsonArray = new JSONArray();
for (Notification.Action action : notification.actions) {
if (null == action.title || (action.getRemoteInputs() != null && action.getRemoteInputs().length > 0))
if (null == action.title)
continue;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT_WATCH)
if (action.getRemoteInputs() != null && action.getRemoteInputs().length > 0)
continue;
jsonArray.put(action.title.toString());
actions.get(key).add(action);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment