From 8ea970abec1091e59cf5ee51ce68b1a822a9d926 Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Mon, 24 Jun 2024 19:57:14 +0800 Subject: [PATCH] =?UTF-8?q?ANS=E5=A2=9E=E5=8A=A0reminder=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- services/ans/src/advanced_notification_utils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/ans/src/advanced_notification_utils.cpp b/services/ans/src/advanced_notification_utils.cpp index b2c3a89ed..5d4851537 100644 --- a/services/ans/src/advanced_notification_utils.cpp +++ b/services/ans/src/advanced_notification_utils.cpp @@ -35,6 +35,7 @@ #include "hitrace_meter.h" #include "notification_timer_info.h" #include "time_service_client.h" +#include "notification_extension_wrapper.h" #ifdef DISTRIBUTED_NOTIFICATION_SUPPORTED #include "distributed_notification_manager.h" @@ -1941,9 +1942,7 @@ bool AdvancedNotificationService::AllowUseReminder(const std::string& bundleName { #ifdef ENABLE_ANS_EXT_WRAPPER int32_t ctrlResult = EXTENTION_WRAPPER->ReminderControl(bundleName); - if (ctrlResult != ERR_OK) { - return ctrlResult; - } + return (ctrlResult == ERR_OK) ? true : false; #else return true; #endif -- Gitee