From c80192e1b0f98401492c2e3da64f285ed94cbd76 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 2 May 2020 21:40:15 +0200 Subject: [PATCH] removing the beeping when the call notification appears --- .../simplemobiletools/contacts/pro/activities/CallActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt index 7ca4170e..30205077 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt @@ -288,6 +288,7 @@ class CallActivity : SimpleActivity() { val name = "call_notification_channel" NotificationChannel(channelId, name, importance).apply { + setSound(null, null) notificationManager.createNotificationChannel(this) } } @@ -333,6 +334,7 @@ class CallActivity : SimpleActivity() { .setCategory(Notification.CATEGORY_CALL) .setCustomContentView(collapsedView) .setOngoing(true) + .setSound(null) .setUsesChronometer(callState == Call.STATE_ACTIVE) .setChannelId(channelId) .setStyle(NotificationCompat.DecoratedCustomViewStyle())