Fix long notification with images conflict
This commit is contained in:
		| @@ -103,8 +103,6 @@ public class MessagingService extends FirebaseMessagingService { | |||||||
|                         .setSmallIcon(R.drawable.mini_icon) |                         .setSmallIcon(R.drawable.mini_icon) | ||||||
|                         .setContentTitle(messageTitle) |                         .setContentTitle(messageTitle) | ||||||
|                         .setContentText(messageBody) |                         .setContentText(messageBody) | ||||||
|                         .setStyle(new NotificationCompat.BigTextStyle() |  | ||||||
|                                 .bigText(messageBody)) |  | ||||||
|                         .setAutoCancel(autoCancel) |                         .setAutoCancel(autoCancel) | ||||||
|                         .setSound(defaultSoundUri) |                         .setSound(defaultSoundUri) | ||||||
|                         .setContentIntent(pendingIntent); |                         .setContentIntent(pendingIntent); | ||||||
| @@ -114,6 +112,9 @@ public class MessagingService extends FirebaseMessagingService { | |||||||
|                 notificationBuilder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(image).bigLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.blank_icon))); |                 notificationBuilder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(image).bigLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.blank_icon))); | ||||||
|                 notificationBuilder.setLargeIcon(image); |                 notificationBuilder.setLargeIcon(image); | ||||||
|             } |             } | ||||||
|  |         } else { | ||||||
|  |             notificationBuilder.setStyle(new NotificationCompat.BigTextStyle() | ||||||
|  |                     .bigText(messageBody)); | ||||||
|         } |         } | ||||||
|         for (int i = 1; i <= 3; i++) { |         for (int i = 1; i <= 3; i++) { | ||||||
|             if (data.containsKey("action" + i)) { |             if (data.containsKey("action" + i)) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user