From 10c57d22721f2a6d0821b2a1f752d108e61c90df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 20 Jan 2020 23:10:35 +0100 Subject: [PATCH] [Sync] Lower the priority of sync notification. --- .../szczodrzynski/edziennik/data/api/EdziennikNotification.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/EdziennikNotification.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/EdziennikNotification.kt index cc4d0d83..faf2a5c4 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/EdziennikNotification.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/EdziennikNotification.kt @@ -23,6 +23,9 @@ class EdziennikNotification(val app: App) { NotificationCompat.Builder(app, ApiService.NOTIFICATION_API_CHANNEL_ID) .setSmallIcon(R.drawable.ic_notification) .setPriority(PRIORITY_MIN) + .setDefaults(0) + .setSound(null) + .setVibrate(longArrayOf(0)) .setOngoing(true) .setLocalOnly(true) }