From 0eb75a9ee3febdd4bdb2754010ffb32eff75c5c2 Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Sat, 13 Sep 2025 16:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=97=AD=E6=BA=90=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- .../ans/src/notification_extension_wrapper.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/services/ans/src/notification_extension_wrapper.cpp b/services/ans/src/notification_extension_wrapper.cpp index 38f33adb4..ded49a585 100644 --- a/services/ans/src/notification_extension_wrapper.cpp +++ b/services/ans/src/notification_extension_wrapper.cpp @@ -286,31 +286,19 @@ void ExtensionWrapper::HandlePrivilegeMessage(const sptr& bundleOption, const int32_t &userId) { - if (getPrivilegeDialogPopped_ == nullptr) { - ANS_LOGE("GetPrivilegeDialogPopped wrapper symbol failed."); - return -1; - } - return getPrivilegeDialogPopped_(bundleOption, userId); + return false; } bool ExtensionWrapper::SetDialogOpenSuccessTimeStamp(const sptr& bundleOption, const int32_t &userId) { - if (setDialogOpenSuccessTimeStamp_ == nullptr) { - ANS_LOGE("SetDialogOpenSuccessTimeStamp wrapper symbol failed."); - return -1; - } - return setDialogOpenSuccessTimeStamp_(bundleOption, userId); + return true; } bool ExtensionWrapper::SetDialogOpenSuccessTimeInterval(const sptr& bundleOption, const int32_t &userId) { - if (setDialogOpenSuccessTimeInterval_ == nullptr) { - ANS_LOGE("SetDialogOpenSuccessTimeInterval wrapper symbol failed."); - return -1; - } - return setDialogOpenSuccessTimeInterval_(bundleOption, userId); + return true; } #endif -- Gitee