From 1280b5e98ed6b783c09e888c1962b658d254c88b Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Sat, 22 Mar 2025 15:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=B8=A4=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- services/ans/src/notification_preferences_database.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/services/ans/src/notification_preferences_database.cpp b/services/ans/src/notification_preferences_database.cpp index 2a53948e4..b1943953a 100644 --- a/services/ans/src/notification_preferences_database.cpp +++ b/services/ans/src/notification_preferences_database.cpp @@ -229,6 +229,8 @@ const static std::string KEY_REMOVE_SLOT_FLAG = "label_ans_remove_"; const static std::string KEY_REMOVED_FLAG = "1"; +const static std::string KEY_SECOND_REMOVED_FLAG = "2"; + /** * Indicates hashCode rule. */ @@ -2359,7 +2361,7 @@ bool NotificationPreferencesDatabase::SetBundleRemoveFlag(const sptrGetBundleName() + std::to_string(bundleOption->GetUid()) + KEY_UNDER_LINE + std::to_string(slotType); - int32_t result = rdbDataManager_->InsertData(key, KEY_REMOVED_FLAG, userId); + int32_t result = rdbDataManager_->InsertData(key, KEY_SECOND_REMOVED_FLAG, userId); return (result == NativeRdb::E_OK); } @@ -2398,7 +2400,10 @@ bool NotificationPreferencesDatabase::GetBundleRemoveFlag(const sptr