removing the beeping when the call notification appears

This commit is contained in:
tibbi 2020-05-02 21:40:15 +02:00
parent 8098fdf080
commit c80192e1b0
1 changed files with 2 additions and 0 deletions

View File

@ -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())