diff --git a/src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java b/src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java index 4dd12f71..df23f292 100644 --- a/src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java +++ b/src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java @@ -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); }