mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
use only default priority for the app call notification
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user