Commit 9b743f13 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't init with null

parent cb7c91d4
......@@ -206,7 +206,7 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
if (!isUpdate) {
//If it's an update, the other end should have the icon already: no need to extract it and create the payload again
try {
Bitmap appIcon = null;
Bitmap appIcon;
Context foreignContext = context.createPackageContext(statusBarNotification.getPackageName(), 0);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
appIcon = iconToBitmap(foreignContext, notification.getLargeIcon());
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