From fd228b85a62ab2eca7806cd935a3118cd25569b1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 21 Nov 2018 18:26:40 +0100 Subject: [PATCH] reducing the ongoing call notification importance to avoid playing the audio --- .../contacts/pro/services/DialerCallService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt index d9ebd241..ba074a8e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt @@ -46,7 +46,7 @@ class DialerCallService : Service() { if (isOreoPlus()) { val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager val name = resources.getString(R.string.app_name) - val importance = NotificationManager.IMPORTANCE_DEFAULT + val importance = NotificationManager.IMPORTANCE_LOW NotificationChannel(channelId, name, importance).apply { enableLights(false) enableVibration(false)