ln:添加debug调试界面补 2606/2 2606/head
authorluozheng <1732036298@qq.com>
Sat, 25 Oct 2025 10:09:43 +0000 (18:09 +0800)
committerluozheng <1732036298@qq.com>
Sat, 25 Oct 2025 10:09:43 +0000 (18:09 +0800)
code/sdk/application/wearable/ln/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp

index a915664..fd8b533 100644 (file)
@@ -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 触发,保证大多数机型都能响应 */