Remove sound and vibration for notification

This commit is contained in:
J-Jamet
2019-08-14 10:41:12 +02:00
parent c65d96802e
commit 67fecf3fef

View File

@@ -31,7 +31,10 @@ abstract class NotificationService : Service() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel(CHANNEL_ID_KEEPASS,
CHANNEL_NAME_KEEPASS,
NotificationManager.IMPORTANCE_DEFAULT)
NotificationManager.IMPORTANCE_DEFAULT).apply {
enableVibration(false)
setSound(null, null)
}
notificationManager?.createNotificationChannel(channel)
}