From c1f0e624cafa0bb49590224c9c5b166ef48afecd Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 27 May 2020 20:39:40 +0200 Subject: [PATCH] Revert a change from commit b4f3697550c730e74fb2b81a71e700944ed91daa --- .../java/org/linphone/notifications/NotificationsManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt index 7bf23f1d7..b863c2464 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt @@ -388,12 +388,12 @@ class NotificationsManager(private val context: Context) { .setCustomHeadsUpContentView(notificationLayoutHeadsUp) .build() + Log.i("[Notifications Manager] Notifying incoming call notification") + notify(notifiable.notificationId, notification) + if (useAsForeground) { Log.i("[Notifications Manager] Notifying incoming call notification for foreground service") startForeground(notifiable.notificationId, notification) - } else { - Log.i("[Notifications Manager] Notifying incoming call notification") - notify(notifiable.notificationId, notification) } }