Set ForegroundServiceBehavior to FOREGROUND_SERVICE_IMMEDIATE
This commit is contained in:
parent
de82a2be33
commit
ed55d0b5cc
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user