Я обновляю уведомление, когда прогресс обновляется, и каждый раз, когда я получаю журнал, которого нет в моем коде:
D/Notification: allPendingIntents
Создание уведомлениякод:
mProgressNotifBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification)
.setPriority(Notification.PRIORITY_HIGH)
.setContentTitle(notifTitle)
.setAutoCancel(false)
.setProgress(MAX_PROGRESS, 0, true)
.setContentIntent(getPendingIntent());
setOfflineNotificationChannelId();
Notification notification = mProgressNotifBuilder.build();
startForeground(NOTIF_ID, notification);
mNotificationManager.notify(NOTIF_ID, notification);
Обновление кода уведомления:
private void updateNotificationProgress(int present) {
mProgressNotifBuilder.setProgress(MAX_PROGRESS, present, false);
mNotificationManager.notify(NOTIF_ID, mProgressNotifBuilder.build());
}
Что означает этот журнал и как его разрешить?