From 85e06675f30ad538375bd23d27b80c429c405f33 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 21 Dec 2020 17:05:31 +0100 Subject: [PATCH] EN: Fix notifications on 8.0.0 Actually same issue as #1312 --- .../org/microg/gms/nearby/exposurenotification/NotifyService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/NotifyService.kt b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/NotifyService.kt index fa47c53d..687dbe48 100644 --- a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/NotifyService.kt +++ b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/NotifyService.kt @@ -42,7 +42,7 @@ class NotifyService : LifecycleService() { if (Build.VERSION.SDK_INT >= 29) { channel.setAllowBubbles(false) } - channel.vibrationPattern = LongArray(0) + channel.vibrationPattern = longArrayOf(0) getSystemService(NotificationManager::class.java).createNotificationChannel(channel) return channel.id }