系统:优化功耗记录开关 1526/1
authorCaisking <3449750381@qq.com>
Tue, 17 Dec 2024 09:34:49 +0000 (17:34 +0800)
committerCaisking <3449750381@qq.com>
Tue, 17 Dec 2024 09:34:49 +0000 (17:34 +0800)
code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp

index 3ebd85f..d1ce828 100644 (file)
@@ -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,"组件不存在");
           }