Set number to 0 only if null (#3668)
This commit is contained in:
parent
0909a30633
commit
4ce1d75733
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue