From 27b2e0df7ecce7b4aab6a36ea9926ebb851ffd65 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 17 Dec 2024 17:34:49 +0800 Subject: [PATCH] =?utf8?q?=E7=B3=BB=E7=BB=9F=EF=BC=9A=E4=BC=98=E5=8C=96?= =?utf8?q?=E5=8A=9F=E8=80=97=E8=AE=B0=E5=BD=95=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../debug_output_notification/debug_output_notification.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,"组件不存在"); } -- 2.17.1