Merge pull request #612 from liyamahendra/master

fix: issue #574
This commit is contained in:
Tibor Kaputa
2023-05-18 12:23:01 +02:00
committed by GitHub

View File

@@ -85,7 +85,7 @@ class CallNotificationManager(private val context: Context) {
val builder = NotificationCompat.Builder(context, channelId) val builder = NotificationCompat.Builder(context, channelId)
.setSmallIcon(R.drawable.ic_phone_vector) .setSmallIcon(R.drawable.ic_phone_vector)
.setContentIntent(openAppPendingIntent) .setContentIntent(openAppPendingIntent)
.setPriority(if (isHighPriority) NotificationCompat.PRIORITY_MAX else NotificationCompat.PRIORITY_DEFAULT) .setPriority(if (isHighPriority) NotificationManager.IMPORTANCE_HIGH else NotificationCompat.PRIORITY_DEFAULT)
.setCategory(Notification.CATEGORY_CALL) .setCategory(Notification.CATEGORY_CALL)
.setCustomContentView(collapsedView) .setCustomContentView(collapsedView)
.setOngoing(true) .setOngoing(true)