Skip to content

Commit

Permalink
Set ForegroundServiceBehavior to FOREGROUND_SERVICE_IMMEDIATE
Browse files Browse the repository at this point in the history
  • Loading branch information
yterletskyi committed Oct 9, 2022
1 parent de82a2b commit ed55d0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ private Notification buildNotification(
notificationBuilder.setProgress(maxProgress, currentProgress, indeterminateProgress);
notificationBuilder.setOngoing(ongoing);
notificationBuilder.setShowWhen(showWhen);
notificationBuilder.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE);
return notificationBuilder.build();
}
}

0 comments on commit ed55d0b

Please sign in to comment.