Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KDE Connect Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
25
Merge Requests
25
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Network
KDE Connect Android
Commits
a7d6b9a8
Commit
a7d6b9a8
authored
Jun 15, 2019
by
Albert Vaca Cintora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash if icon can't be found
parent
f688aad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
...nect/Plugins/NotificationsPlugin/NotificationsPlugin.java
+2
-2
No files found.
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
View file @
a7d6b9a8
...
...
@@ -304,10 +304,10 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
PackageManager
pm
=
context
.
getPackageManager
();
Resources
foreignResources
=
pm
.
getResourcesForApplication
(
statusBarNotification
.
getPackageName
());
Drawable
foreignIcon
=
foreignResources
.
getDrawable
(
notification
.
icon
);
Drawable
foreignIcon
=
foreignResources
.
getDrawable
(
notification
.
icon
);
//Might throw Resources.NotFoundException
return
drawableToBitmap
(
foreignIcon
);
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
}
catch
(
PackageManager
.
NameNotFoundException
|
Resources
.
NotFoundException
e
)
{
Log
.
e
(
TAG
,
"Package not found"
,
e
);
}
...
...
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