Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KDE Connect Android
Commits
b375d796
Commit
b375d796
authored
Apr 18, 2019
by
Nicolas Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add version check
parent
6f0ed846
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
...nect/Plugins/NotificationsPlugin/NotificationsPlugin.java
+7
-1
No files found.
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
View file @
b375d796
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment