use Call category for the call notification

This commit is contained in:
tibbi 2020-04-30 21:53:54 +02:00
parent c7f5f454ef
commit b3aa539f52
1 changed files with 1 additions and 2 deletions

View File

@ -85,8 +85,7 @@ class CallActivity : SimpleActivity() {
.setSmallIcon(R.drawable.ic_phone_vector) .setSmallIcon(R.drawable.ic_phone_vector)
.setContentIntent(openAppPendingIntent) .setContentIntent(openAppPendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX) .setPriority(NotificationCompat.PRIORITY_MAX)
.setDefaults(Notification.DEFAULT_LIGHTS) .setCategory(Notification.CATEGORY_CALL)
.setCategory(Notification.CATEGORY_EVENT)
.setCustomContentView(collapsedView) .setCustomContentView(collapsedView)
.setOngoing(true) .setOngoing(true)
.setAutoCancel(true) .setAutoCancel(true)