From 9194190fa918387888d4cc32a46b641ab08974b4 Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 24 Apr 2024 11:46:34 +0200 Subject: [PATCH] Don't delay showing the notification for the Push foreground service --- .../java/com/fsck/k9/notification/PushNotificationManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/core/src/main/java/com/fsck/k9/notification/PushNotificationManager.kt b/app/core/src/main/java/com/fsck/k9/notification/PushNotificationManager.kt index c845a0adc..7fb2d1962 100644 --- a/app/core/src/main/java/com/fsck/k9/notification/PushNotificationManager.kt +++ b/app/core/src/main/java/com/fsck/k9/notification/PushNotificationManager.kt @@ -63,6 +63,7 @@ internal class PushNotificationManager( .setBadgeIconType(NotificationCompat.BADGE_ICON_NONE) .setLocalOnly(true) .setShowWhen(false) + .setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE) .build() }