Set ForegroundServiceBehavior to FOREGROUND_SERVICE_IMMEDIATE

This commit is contained in:
yterletskyi 2022-10-09 21:24:26 +03:00
parent de82a2be33
commit ed55d0b5cc

View File

@ -237,6 +237,7 @@ public final class DownloadNotificationHelper {
notificationBuilder.setProgress(maxProgress, currentProgress, indeterminateProgress);
notificationBuilder.setOngoing(ongoing);
notificationBuilder.setShowWhen(showWhen);
notificationBuilder.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE);
return notificationBuilder.build();
}
}