From 3fb984d8fc410f50bc830999e30efc5cdb7180de Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 17 Dec 2024 17:14:51 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9debug=E7=95=8C=E9=9D=A2runtime?= =?utf8?q?=E6=97=A5=E5=BF=97=E4=BF=9D=E5=AD=98=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../debug_output_notification.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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,"组件不存在"); -- 2.17.1