diff --git a/services/ans/src/notification_preferences_database.cpp b/services/ans/src/notification_preferences_database.cpp index 2a53948e4a56c8da87d7acfc3b8dce777bb48914..b1943953a27499e098da0ed5935d224f0347da88 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