From 453d879c82ff8344251568eadad2b2944e2f76bf Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 4 Dec 2022 00:57:14 +0530 Subject: [PATCH] Minor readability improvement --- .../smsmessenger/helpers/NotificationHelper.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/NotificationHelper.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/NotificationHelper.kt index a8d56678..45fcae7b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/NotificationHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/NotificationHelper.kt @@ -152,7 +152,9 @@ class NotificationHelper(private val context: Context) { .setLegacyStreamType(AudioManager.STREAM_NOTIFICATION) .build() - NotificationChannel(NOTIFICATION_CHANNEL, name, IMPORTANCE_HIGH).apply { + val id = NOTIFICATION_CHANNEL + val importance = IMPORTANCE_HIGH + NotificationChannel(id, name, importance).apply { setBypassDnd(false) enableLights(true) setSound(soundUri, audioAttributes)