From 191d19a908cc4ee292189b6397a969577cf3c744 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Tue, 30 Dec 2025 18:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=9A=E7=9F=A5=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/remax/notification/newUtil/NotificationUtil.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt b/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt index e7e5e27..d2664b7 100644 --- a/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt +++ b/notification/src/main/java/com/remax/notification/newUtil/NotificationUtil.kt @@ -39,7 +39,7 @@ class NotificationUtil private constructor() { fun createNotificationChannel(channelId: String, channelName: String, importance: Int) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel = NotificationChannel(channelId, channelName, importance).apply { - description = "Channel description" + description = channelName enableLights(true) lightColor = Color.RED enableVibration(true) @@ -362,7 +362,7 @@ class NotificationUtil private constructor() { } // 6. 发送通知 - showNotification(notificationId, builder.build(), "xxxname") + showNotification(notificationId, builder.build(), channelName) } /**