From 45295b2bce26192771c092c6d5027936b7395039 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 25 Oct 2025 18:09:43 +0800 Subject: [PATCH] =?utf8?q?ln:=E6=B7=BB=E5=8A=A0debug=E8=B0=83=E8=AF=95?= =?utf8?q?=E7=95=8C=E9=9D=A2=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../debug_output_notification/debug_output_notification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/ln/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/ln/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index a915664b3..fd8b533f6 100644 --- a/code/sdk/application/wearable/ln/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/ln/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -63,7 +63,7 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnKeyAct: keyID=%d, keyState=%d, screenState=%d", keyID, keyState, screenState); uint16_t notifyId = NotificationManager::GetInstance()->GetShowingNotifyId(); - if (notifyId == TOPIC_EVENT_DEBUGOUTPUT && keyState == InputDevice::STATE_PRESS && uapi_get_screen_state() == 0) + if (notifyId == TOPIC_EVENT_DEBUGOUTPUT && keyState == InputDevice::STATE_RELEASE && uapi_get_screen_state() == 0) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "TOPIC_EVENT_DEBUGOUTPUT"); /* 使用 PRESS 触发,保证大多数机型都能响应 */ -- 2.17.1