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