Minor readability improvement

This commit is contained in:
Naveen 2022-12-04 00:57:14 +05:30
parent 0ab85419af
commit 453d879c82
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ class NotificationHelper(private val context: Context) {
.setLegacyStreamType(AudioManager.STREAM_NOTIFICATION) .setLegacyStreamType(AudioManager.STREAM_NOTIFICATION)
.build() .build()
NotificationChannel(NOTIFICATION_CHANNEL, name, IMPORTANCE_HIGH).apply { val id = NOTIFICATION_CHANNEL
val importance = IMPORTANCE_HIGH
NotificationChannel(id, name, importance).apply {
setBypassDnd(false) setBypassDnd(false)
enableLights(true) enableLights(true)
setSound(soundUri, audioAttributes) setSound(soundUri, audioAttributes)