diff --git a/frameworks/ans/native/src/reminder_helper.cpp b/frameworks/ans/native/src/reminder_helper.cpp index 524d479dcf6be3889181f0fa0cc5ca4f6842aa4f..33c84c1a14e4ffaffc97c9b7b4830f35936f9308 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); }