removing the beeping when the call notification appears
This commit is contained in:
parent
8098fdf080
commit
c80192e1b0
|
@ -288,6 +288,7 @@ class CallActivity : SimpleActivity() {
|
||||||
val name = "call_notification_channel"
|
val name = "call_notification_channel"
|
||||||
|
|
||||||
NotificationChannel(channelId, name, importance).apply {
|
NotificationChannel(channelId, name, importance).apply {
|
||||||
|
setSound(null, null)
|
||||||
notificationManager.createNotificationChannel(this)
|
notificationManager.createNotificationChannel(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -333,6 +334,7 @@ class CallActivity : SimpleActivity() {
|
||||||
.setCategory(Notification.CATEGORY_CALL)
|
.setCategory(Notification.CATEGORY_CALL)
|
||||||
.setCustomContentView(collapsedView)
|
.setCustomContentView(collapsedView)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
|
.setSound(null)
|
||||||
.setUsesChronometer(callState == Call.STATE_ACTIVE)
|
.setUsesChronometer(callState == Call.STATE_ACTIVE)
|
||||||
.setChannelId(channelId)
|
.setChannelId(channelId)
|
||||||
.setStyle(NotificationCompat.DecoratedCustomViewStyle())
|
.setStyle(NotificationCompat.DecoratedCustomViewStyle())
|
||||||
|
|
Loading…
Reference in New Issue