From 79d6f4ba70d8a5bfc4298cfc635e7a1c67f3f5d6 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 19 Aug 2025 09:03:15 +0300 Subject: [PATCH] Fixed DND checking --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index cfbce34f..9471c754 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -1402,8 +1402,7 @@ class BaresipService: Service() { private fun shouldStartRinging(channelId: String): Boolean { val currentFilter = nm.currentInterruptionFilter - val dndAllowsRinging = currentFilter == NotificationManager.INTERRUPTION_FILTER_ALL || - currentFilter == NotificationManager.INTERRUPTION_FILTER_PRIORITY + val dndAllowsRinging = currentFilter <= NotificationManager.INTERRUPTION_FILTER_ALL if (dndAllowsRinging) return true val channel = nm.getNotificationChannel(channelId)