From 431ede3e35070c6ace34a351f2c5810ec0a215d1 Mon Sep 17 00:00:00 2001 From: atavism Date: Tue, 3 Oct 2023 09:45:50 -0700 Subject: [PATCH] Disable notification sound --- .../org/getlantern/lantern/notification/NotificationHelper.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/org/getlantern/lantern/notification/NotificationHelper.kt b/android/app/src/main/kotlin/org/getlantern/lantern/notification/NotificationHelper.kt index 6177a75d5..8efd5f99a 100644 --- a/android/app/src/main/kotlin/org/getlantern/lantern/notification/NotificationHelper.kt +++ b/android/app/src/main/kotlin/org/getlantern/lantern/notification/NotificationHelper.kt @@ -53,7 +53,8 @@ class NotificationHelper( private fun setChannelOptions(notificationChannel: NotificationChannel) { notificationChannel.enableLights(true) notificationChannel.lightColor = Color.GREEN - notificationChannel.enableVibration(false) + notificationChannel.enableVibration(true) + notificationChannel.setSound(null, null) manager.createNotificationChannel(notificationChannel) }