From: luozheng <1732036298@qq.com> Date: Sat, 25 Oct 2025 10:09:43 +0000 (+0800) Subject: ln:添加debug调试界面补 X-Git-Tag: V1.0.9_20251128_194606_LN~170^2~1 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=refs%2Fchanges%2F2606%2Fhead;p=mirrors%2FFD230.git ln:添加debug调试界面补 --- 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 触发,保证大多数机型都能响应 */