From: hcj <1224667075@qq.com> Date: Tue, 17 Dec 2024 09:14:51 +0000 (+0800) Subject: 修改debug界面runtime日志保存开关 X-Git-Tag: v1.3.113-repair_tp~144 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=3fb984d8fc410f50bc830999e30efc5cdb7180de;p=mirrors%2FFD230.git 修改debug界面runtime日志保存开关 --- 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 0ec8a7dc5..3ebd85fb0 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 @@ -753,6 +753,7 @@ namespace OHOS bool DebugOutputViewEventListener::OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event) { std::string viewId = view.GetViewId(); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"viewId %s",viewId.c_str()); int viewIndex; std::string str; if (viewId == DEBUGOUTPUTBLESERVICELABELBUTTON) // 开启ble广播 @@ -821,14 +822,15 @@ namespace OHOS } return true; //进行UI刷新 } - else if (viewId == "runtime_log_is_save") + else if (viewId == "runtime_log_is_save") { if (toggleButtonOffline) { if (toggleButtonOffline->GetState() == false) { - set_save_runtime_log_switch(1); + set_save_runtime_log_switch(0); + } else { - set_save_runtime_log_switch(0); + set_save_runtime_log_switch(1); } } else { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"组件不存在");