disable the alert_only_once flag at incoming call notifications

This commit is contained in:
tibbi 2018-11-27 15:00:19 +01:00
parent 9e015c3888
commit 48a7eb3c72
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class DialerCallService : Service() {
@TargetApi(Build.VERSION_CODES.O)
private fun setupNotification() {
val channelId = "simple_contacts_channel"
val channelId = "incoming_call"
if (isOreoPlus()) {
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
val name = resources.getString(R.string.app_name)
@ -94,7 +94,7 @@ class DialerCallService : Service() {
.setCategory(NotificationCompat.CATEGORY_CALL)
.setChannelId(channelId)
.setSound(null)
.setOnlyAlertOnce(true)
.setOnlyAlertOnce(false)
.setUsesChronometer(callStatus == Call.STATE_ACTIVE)
startForeground(CALL_NOTIFICATION_ID, notification.build())