mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Set ForegroundServiceBehavior to FOREGROUND_SERVICE_IMMEDIATE
This commit is contained in:
parent
de82a2be33
commit
ed55d0b5cc
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ public final class DownloadNotificationHelper {
|
||||||
notificationBuilder.setProgress(maxProgress, currentProgress, indeterminateProgress);
|
notificationBuilder.setProgress(maxProgress, currentProgress, indeterminateProgress);
|
||||||
notificationBuilder.setOngoing(ongoing);
|
notificationBuilder.setOngoing(ongoing);
|
||||||
notificationBuilder.setShowWhen(showWhen);
|
notificationBuilder.setShowWhen(showWhen);
|
||||||
|
notificationBuilder.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE);
|
||||||
return notificationBuilder.build();
|
return notificationBuilder.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue