reducing the ongoing call notification importance to avoid playing the audio
This commit is contained in:
parent
a392759ae0
commit
fd228b85a6
|
@ -46,7 +46,7 @@ class DialerCallService : Service() {
|
||||||
if (isOreoPlus()) {
|
if (isOreoPlus()) {
|
||||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||||
val name = resources.getString(R.string.app_name)
|
val name = resources.getString(R.string.app_name)
|
||||||
val importance = NotificationManager.IMPORTANCE_DEFAULT
|
val importance = NotificationManager.IMPORTANCE_LOW
|
||||||
NotificationChannel(channelId, name, importance).apply {
|
NotificationChannel(channelId, name, importance).apply {
|
||||||
enableLights(false)
|
enableLights(false)
|
||||||
enableVibration(false)
|
enableVibration(false)
|
||||||
|
|
Loading…
Reference in New Issue