From 020b8b78bc1052e2d2c845abc83a591d2b85d4d3 Mon Sep 17 00:00:00 2001 From: Vincent TE Date: Thu, 11 Jul 2024 10:37:36 +0200 Subject: [PATCH] Remove configuration of notification channel for badges --- .../lib/core/utils/NotificationUtilsCore.kt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/com/infomaniak/lib/core/utils/NotificationUtilsCore.kt b/src/main/java/com/infomaniak/lib/core/utils/NotificationUtilsCore.kt index d1b3d205..f5ca3a4c 100644 --- a/src/main/java/com/infomaniak/lib/core/utils/NotificationUtilsCore.kt +++ b/src/main/java/com/infomaniak/lib/core/utils/NotificationUtilsCore.kt @@ -25,7 +25,6 @@ import android.os.Build import androidx.annotation.RequiresApi import androidx.core.app.NotificationCompat import androidx.core.app.NotificationManagerCompat -import com.infomaniak.lib.core.R abstract class NotificationUtilsCore { @@ -68,7 +67,7 @@ abstract class NotificationUtilsCore { } @RequiresApi(Build.VERSION_CODES.O) - protected fun Context.buildNotificationChannel( + protected fun buildNotificationChannel( channelId: String, name: String, importance: Int, @@ -78,18 +77,6 @@ abstract class NotificationUtilsCore { return NotificationChannel(channelId, name, importance).apply { description?.let { this.description = it } groupId?.let { group = it } - when (importance) { - NotificationManager.IMPORTANCE_HIGH -> { - enableLights(true) - setShowBadge(true) - lightColor = getColor(R.color.primary) - } - else -> { - enableLights(false) - setShowBadge(false) - enableVibration(false) - } - } } }