use only default priority for the app call notification

This commit is contained in:
tibbi 2020-05-01 18:36:56 +02:00
parent a9fff376ea
commit 7f1c2471d0

View file

@ -225,7 +225,7 @@ class CallActivity : SimpleActivity() {
private fun showNotification() {
val channelId = "simple_contacts_call"
if (isOreoPlus()) {
val importance = NotificationManager.IMPORTANCE_HIGH
val importance = NotificationManager.IMPORTANCE_DEFAULT
val name = "call_notification_channel"
NotificationChannel(channelId, name, importance).apply {
@ -263,7 +263,7 @@ class CallActivity : SimpleActivity() {
val builder = NotificationCompat.Builder(this, channelId)
.setSmallIcon(R.drawable.ic_phone_vector)
.setContentIntent(openAppPendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setCategory(Notification.CATEGORY_CALL)
.setCustomContentView(collapsedView)
.setOngoing(true)