From e08e1ede3d447dc33791ede73f5ebf3c5675e1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=B7=E5=BA=B7?= Date: Thu, 19 Jan 2023 10:26:05 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20fabf302=20from=20https://gitee.com/liao?= =?UTF-8?q?kk/notification=5Fdistributed=5Fnotification=5Fservice/pulls/90?= =?UTF-8?q?5=20fixed=2054177af=20from=20https://gitee.com/liaokk/notificat?= =?UTF-8?q?ion=5Fdistributed=5Fnotification=5Fservice/pulls/904=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖康康 --- frameworks/ans/native/src/reminder_helper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frameworks/ans/native/src/reminder_helper.cpp b/frameworks/ans/native/src/reminder_helper.cpp index 524d479dc..33c84c1a1 100644 --- a/frameworks/ans/native/src/reminder_helper.cpp +++ b/frameworks/ans/native/src/reminder_helper.cpp @@ -25,8 +25,7 @@ namespace Notification { ErrCode ReminderHelper::PublishReminder(ReminderRequest &reminder) { ANSR_LOGI("PublishReminder start"); - NotificationSlot slot(reminder.GetSlotType()); - NotificationHelper::AddNotificationSlot(slot); + NotificationHelper::AddSlotByType(reminder.GetSlotType()); return DelayedSingleton::GetInstance()->PublishReminder(reminder); } -- Gitee