解决消息通知页面息屏后按键监听失效问题 3058/1 3058/head
authorluozheng <1732036298@qq.com>
Fri, 9 Jan 2026 07:57:08 +0000 (15:57 +0800)
committerluozheng <1732036298@qq.com>
Fri, 9 Jan 2026 07:57:08 +0000 (15:57 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/message/src/MessagePresenter.cpp

index 6c84b2b..00dc9ce 100644 (file)
@@ -76,6 +76,7 @@ namespace OHOS
             }
         }
 
+        RootView::GetInstance()->SetOnKeyActListener(this);
     }
     
     bool MessagePresenter::OnDrag(UIView &view, const DragEvent &event)