From 3aa79367d3cc2150eb25dfbf0707816d9749ebc3 Mon Sep 17 00:00:00 2001 From: z30053788 Date: Tue, 8 Jul 2025 20:46:16 +0800 Subject: [PATCH] update Signed-off-by: z30053788 Change-Id: I8ed7bfd4602e89eb730096a51d905410050076e2 --- frameworks/ans/src/notification_slot.cpp | 2 +- services/ans/src/notification_rdb_data_mgr.cpp | 4 ---- services/distributed/src/helper/distributed_rdb_helper.cpp | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/frameworks/ans/src/notification_slot.cpp b/frameworks/ans/src/notification_slot.cpp index e41352c9f..07497aca9 100644 --- a/frameworks/ans/src/notification_slot.cpp +++ b/frameworks/ans/src/notification_slot.cpp @@ -149,7 +149,7 @@ void NotificationSlot::SetType(NotificationConstant::SlotType type) SetLockscreenVisibleness(NotificationConstant::VisiblenessType::PUBLIC); SetSound(DEFAULT_NOTIFICATION_SOUND); SetVibrationStyle(DEFAULT_NOTIFICATION_VIBRATION); - SetLevel(LEVEL_HIGH); + SetLevel(LEVEL_DEFAULT); break; case NotificationConstant::SlotType::CONTENT_INFORMATION: id_ = "CONTENT_INFORMATION"; diff --git a/services/ans/src/notification_rdb_data_mgr.cpp b/services/ans/src/notification_rdb_data_mgr.cpp index ebaadab1b..198a1f0db 100644 --- a/services/ans/src/notification_rdb_data_mgr.cpp +++ b/services/ans/src/notification_rdb_data_mgr.cpp @@ -796,10 +796,6 @@ int32_t NotificationDataMgr::RestoreForMasterSlaver() NotificationAnalyticsUtil::ReportModifyEvent(message); ANS_LOGI("RestoreForMasterSlaver start"); int32_t result = rdbStore_->Restore(""); - if (result == NativeRdb::E_SQLITE_CORRUPT) { - Destroy(); - Init(); - } ANS_LOGI("RestoreForMasterSlaver result = %{public}d", result); return result; } diff --git a/services/distributed/src/helper/distributed_rdb_helper.cpp b/services/distributed/src/helper/distributed_rdb_helper.cpp index 9a146aaa3..d7cac40c4 100644 --- a/services/distributed/src/helper/distributed_rdb_helper.cpp +++ b/services/distributed/src/helper/distributed_rdb_helper.cpp @@ -334,10 +334,6 @@ int32_t DistributedRdbHelper::RestoreForMasterSlaver() { ANS_LOGI("RestoreForMasterSlaver start"); int32_t result = rdbStore_->Restore(""); - if (result == NativeRdb::E_SQLITE_CORRUPT) { - Destroy(); - Init(); - } ANS_LOGI("RestoreForMasterSlaver result = %{public}d", result); return result; } -- Gitee