Set number to 0 only if null (#3668)

This commit is contained in:
Miguel Alatzar
2019-12-06 11:35:15 -07:00
committed by CJ
parent 0909a30633
commit 4ce1d75733

View File

@@ -279,7 +279,7 @@ public class CustomPushNotification extends PushNotification {
private void setNotificationNumber(Notification.Builder notification, String channelId) {
Integer number = channelIdToNotificationCount.get(channelId);
if (number != null) {
if (number == null) {
number = 0;
}
notification.setNumber(number);