Do not play sound for quick & update notifications

This commit is contained in:
Rahul Patel
2023-10-15 02:06:23 +05:30
parent 25601b2a41
commit 0c9f739211

View File

@@ -79,7 +79,9 @@ class AuroraApplication : Application() {
Constants.NOTIFICATION_CHANNEL_ALERT, Constants.NOTIFICATION_CHANNEL_ALERT,
getString(R.string.notification_channel_alert), getString(R.string.notification_channel_alert),
NotificationManager.IMPORTANCE_HIGH NotificationManager.IMPORTANCE_HIGH
) ).apply {
setSound(null, null)
}
) )
channels.add( channels.add(
NotificationChannel( NotificationChannel(
@@ -100,7 +102,9 @@ class AuroraApplication : Application() {
Constants.NOTIFICATION_CHANNEL_UPDATES, Constants.NOTIFICATION_CHANNEL_UPDATES,
getString(R.string.notification_channel_updates), getString(R.string.notification_channel_updates),
NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_DEFAULT
) ).apply {
setSound(null, null)
}
) )
notificationManager.createNotificationChannels(channels) notificationManager.createNotificationChannels(channels)
} }