From 25e8abaed00519eb7563e87a3c2dfdf443112f48 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 19 Feb 2026 05:02:51 +0200 Subject: [PATCH] Removed unnecessary function argument --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 1a7e07fd..cfa079a8 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -921,7 +921,7 @@ class BaresipService: Service() { } val channelId = HIGH_CHANNEL_ID val callerNumber = peerUri.split(":")[1].split("@")[0] - if (shouldStartRinging(channelId, callerNumber)) + if (shouldStartRinging(callerNumber)) startRinging() if (!Utils.isVisible()) { val piFlags = PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT @@ -1540,12 +1540,12 @@ class BaresipService: Service() { } } - - private fun shouldStartRinging(channelId: String, callerNumber: String): Boolean { +\ + private fun shouldStartRinging(callerNumber: String): Boolean { val currentFilter = nm.currentInterruptionFilter if (currentFilter <= NotificationManager.INTERRUPTION_FILTER_ALL) return true - val channel = nm.getNotificationChannel(channelId) + val channel = nm.getNotificationChannel(HIGH_CHANNEL_ID) if (channel != null && channel.canBypassDnd()) return true return isStarredContact(callerNumber)