mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 22:55:10 +00:00
Add version check
This commit is contained in:
@@ -267,8 +267,14 @@ 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 || (action.getRemoteInputs() != null && action.getRemoteInputs().length > 0))
|
|
||||||
|
if (null == action.title)
|
||||||
continue;
|
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());
|
jsonArray.put(action.title.toString());
|
||||||
actions.get(key).add(action);
|
actions.get(key).add(action);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user