Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect Android
Commits
a8bc4f24
Commit
a8bc4f24
authored
Mar 21, 2019
by
Albert Vaca Cintora
Browse files
Fix crash on old API
parent
3b82cd44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
View file @
a8bc4f24
...
...
@@ -466,8 +466,10 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
private
void
sendCurrentNotifications
(
NotificationReceiver
service
)
{
StatusBarNotification
[]
notifications
=
service
.
getActiveNotifications
();
for
(
StatusBarNotification
notification
:
notifications
)
{
sendNotification
(
notification
);
if
(
notifications
!=
null
)
{
//Can happen only on API 23 and lower
for
(
StatusBarNotification
notification
:
notifications
)
{
sendNotification
(
notification
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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