From 2fd5108673c278227a4f851ffe905a5302809e70 Mon Sep 17 00:00:00 2001 From: bzy <2455966574@qq.com> Date: Sat, 27 Apr 2024 16:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=8F=8C=E4=BA=92=E9=80=9A=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=8E=B7=E5=8F=96=E9=80=9A=E7=9F=A5=E4=BD=BF?= =?UTF-8?q?=E8=83=BD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bzy <2455966574@qq.com> --- services/ans/src/notification_preferences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/ans/src/notification_preferences.cpp b/services/ans/src/notification_preferences.cpp index 86f6e0c46..79a08c112 100644 --- a/services/ans/src/notification_preferences.cpp +++ b/services/ans/src/notification_preferences.cpp @@ -831,7 +831,7 @@ ErrCode NotificationPreferences::SetDistributedEnabledByBundle(const sptrGetBundleName()); bundleInfo.SetBundleUid(bundleOption->GetUid()); - bundleInfo.SetEnableNotification(CheckApiCompatibility(bundleOption)); + bool storeDBResult = true; storeDBResult = preferncesDB_->PutDistributedEnabledForBundle(deviceType, bundleInfo, enabled); return storeDBResult ? ERR_OK : ERR_ANS_PREFERENCES_NOTIFICATION_DB_OPERATION_FAILED; @@ -849,7 +849,7 @@ ErrCode NotificationPreferences::IsDistributedEnabledByBundle(const sptrGetBundleName()); bundleInfo.SetBundleUid(bundleOption->GetUid()); - bundleInfo.SetEnableNotification(CheckApiCompatibility(bundleOption)); + bool storeDBResult = true; storeDBResult = preferncesDB_->GetDistributedEnabledForBundle(deviceType, bundleInfo, enabled); return storeDBResult ? ERR_OK : ERR_ANS_PREFERENCES_NOTIFICATION_DB_OPERATION_FAILED; -- Gitee