mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Set foreground service behavior
This commit is contained in:
@@ -231,6 +231,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
private Notification getNotificationService(boolean alert) {
|
||||
NotificationCompat.Builder builder =
|
||||
new NotificationCompat.Builder(this, "send")
|
||||
.setForegroundServiceBehavior(Notification.FOREGROUND_SERVICE_IMMEDIATE)
|
||||
.setSmallIcon(R.drawable.baseline_send_white_24)
|
||||
.setContentTitle(getString(R.string.title_notification_sending))
|
||||
.setContentIntent(getPendingIntent(this))
|
||||
|
||||
Reference in New Issue
Block a user