From: Caisking <3449750381@qq.com> Date: Tue, 17 Dec 2024 09:34:49 +0000 (+0800) Subject: 系统:优化功耗记录开关 X-Git-Tag: v1.3.113-repair_tp~141^2~4 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1526%2F1;p=mirrors%2FFD230.git 系统:优化功耗记录开关 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 3ebd85fb0..d1ce8280b 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -170,7 +170,7 @@ namespace OHOS //心率广播 debugOutputItemInfo[index++] = {index, "hrs_ble_swtich"}; - debugOutputItemInfo[index++] = {index, "save_runtime_log_swtich"}; + debugOutputItemInfo[index++] = {index, "save_runtime_log"}; usedLen = index; @@ -832,6 +832,10 @@ namespace OHOS else { set_save_runtime_log_switch(1); } + + //重启 + NotificationManager::GetInstance()->StopNotify(); + shutdown_reboot_prejobs(REBOOT_TYPE); } else { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"组件不存在"); }