From 1204275b9ae30018641957010aed8434ac03d9d0 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 7 Jul 2022 09:36:26 +0200 Subject: [PATCH] Prevent call notification from not being removed when call ends if service channel is disabled & background mode is enabled --- .../java/org/linphone/notifications/NotificationsManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt index 9245595b1..01126bcda 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt @@ -405,7 +405,7 @@ class NotificationsManager(private val context: Context) { } fun stopCallForeground() { - if (service != null && currentForegroundServiceNotificationId != SERVICE_NOTIF_ID && !corePreferences.keepServiceAlive) { + if (service != null && currentForegroundServiceNotificationId != SERVICE_NOTIF_ID) { Log.i("[Notifications Manager] Stopping call notification [$currentForegroundServiceNotificationId] used as foreground service") stopForegroundNotification() }