diff --git a/frameworks/ans/src/notification_slot.cpp b/frameworks/ans/src/notification_slot.cpp index e41352c9f50042f6c0c2c7a66990ddf978587590..07497aca95b05677e3436089a9532973287ff620 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 ebaadab1b2750fd1216756775ae35ac65544b103..198a1f0db0dd93455b5f729d508d1fa2ea110f30 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 9a146aaa36d7897d8ea5e3a747e20fca009a2d35..d7cac40c40f24c164226abdccfcc040e9eeae216 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; }