From 66ecb8e3799180466b6555729bf2c5c758731a0c Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 18 Dec 2023 21:59:23 -0500 Subject: [PATCH] Keep microphone in foreground if we have any reason to Otherwise we may lose it. --- .../eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 998e741cd1a3aaa077f0d550db7edb1d2440ae86..f4b1b0ffb1d9b395765541b71e1b0551cfd71a6e 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1620,7 +1620,7 @@ public class XmppConnectionService extends Service { } else { notification = this.mNotificationService.createForegroundNotification(); id = NotificationService.FOREGROUND_NOTIFICATION_ID; - startForegroundOrCatch(id, notification, needMic); + startForegroundOrCatch(id, notification, needMic || ongoing != null || diallerIntegrationActive.get()); } if (!mForceForegroundService.get()) {