@@ -395,26 +395,39 @@ private static void showNotification(Context context, final Bundle message) {
395395 }
396396
397397 if ((notificationCompatBuilder == null && notificationBuilder == null ) ||
398- (!useNotificationBuilderCustomizer && notificationCompatBuilder == null )) {
398+ (customizer != null & !useNotificationBuilderCustomizer &&
399+ notificationCompatBuilder == null ) ||
400+ (customizer != null && useNotificationBuilderCustomizer && notificationBuilder == null ) ||
401+ (customizer == null && notificationBuilder == null )) {
399402 return ;
400403 }
401404
402405 if (customizer != null ) {
403406 try {
404407 if (useNotificationBuilderCustomizer ) {
405- Notification .BigPictureStyle bigPictureStyle =
406- LeanplumNotificationHelper .getBigPictureStyle (message , bigPicture , title ,
407- messageText );
408- customizer .customize (notificationBuilder , message , bigPictureStyle );
409- LeanplumNotificationHelper .setModifiedBigPictureStyle (notificationBuilder ,
410- bigPictureStyle );
408+ if (bigPicture != null ) {
409+ Notification .BigPictureStyle bigPictureStyle =
410+ LeanplumNotificationHelper .getBigPictureStyle (message , bigPicture , title ,
411+ messageText );
412+ customizer .customize (notificationBuilder , message , bigPictureStyle );
413+ LeanplumNotificationHelper .setModifiedBigPictureStyle (notificationBuilder ,
414+ bigPictureStyle );
415+ } else {
416+ customizer .customize (notificationBuilder , message , null );
417+ }
411418 } else {
412419 customizer .customize (notificationCompatBuilder , message );
413420 }
414421 } catch (Throwable t ) {
415422 Log .e ("Unable to customize push notification: " , Log .getStackTraceString (t ));
416423 return ;
417424 }
425+ } else {
426+ if (bigPicture != null ) {
427+ Notification .BigPictureStyle bigPictureStyle =
428+ LeanplumNotificationHelper .getBigPictureStyle (message , bigPicture , title , messageText );
429+ LeanplumNotificationHelper .setModifiedBigPictureStyle (notificationBuilder , bigPictureStyle );
430+ }
418431 }
419432
420433 int notificationId = LeanplumPushService .NOTIFICATION_ID ;
0 commit comments