From 0371443d3b01a1ff54f2406549ba4d02a89d889d Mon Sep 17 00:00:00 2001 From: xinking129 Date: Mon, 30 Oct 2023 12:40:21 +0800 Subject: [PATCH] Adapt reminder interface Signed-off-by: xinking129 --- .../ans/src/advanced_notification_service.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 4744a429e..f5c0aafa3 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -596,11 +596,6 @@ ErrCode AdvancedNotificationService::Publish(const std::string &label, const spt bool notificationEnable = false; if (request->GetReceiverUserId() != SUBSCRIBE_USER_INIT) { result = CheckNotificationEnableStatus(notificationEnable); - if (result != ERR_OK) { - result = ERR_ANS_INVALID_BUNDLE; - ANS_LOGE("Bundle notification enable not found!"); - break; - } if (notificationEnable) { result = PublishPreparedNotificationInner(request); break; @@ -2549,10 +2544,12 @@ void AdvancedNotificationService::OnBundleDataAdd(const sptr