Do not play sound for quick & update notifications
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user