Skip to content

Commit

Permalink
Merge pull request #89 from mkapostolov/patch-1
Browse files Browse the repository at this point in the history
Fix setting of 'largeIcon'
  • Loading branch information
EddyVerbruggen authored Jun 1, 2017
2 parents 9853a69 + 5f090da commit b0b7de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ public void createNotification(Context context, Bundle extras) {
mBuilder.setDefaults(defaults);
}

final Notification notification = mBuilder.build();
final int largeIcon = getLargeIcon(context, extras);
if (largeIcon > -1) {
final Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), largeIcon);
mBuilder.setLargeIcon(bitmap);
}


final Notification notification = mBuilder.build();
mNotificationManager.notify(appName, notId, notification);
}

Expand Down

0 comments on commit b0b7de7

Please sign in to comment.