From: luozheng <1732036298@qq.com> Date: Wed, 13 Mar 2024 07:20:00 +0000 (+0800) Subject: 解决从applist进入其他slice然后退回到applist死机问题。在使用表冠聚焦到某一视图时,退出该slice需要取消聚焦。 X-Git-Tag: release_V1.2.70_20241020_135402~1274^2~8^2~17 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=716b5e076c6965dcd69aa3727b4a746889fe41ea;p=mirrors%2FFD230.git 解决从applist进入其他slice然后退回到applist死机问题。在使用表冠聚焦到某一视图时,退出该slice需要取消聚焦。 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp index 4c9a270b4..38cbe7ff9 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp @@ -147,8 +147,8 @@ namespace OHOS return; } contentList_->SetOnDragListener(dragListener); - //contentList_->SetRotateFactor(2); - //contentList_->RequestFocus(); + contentList_->SetRotateFactor(2); + contentList_->RequestFocus(); } void ApplistView::OnSetUpView() @@ -205,6 +205,7 @@ namespace OHOS RootView::GetInstance()->ClearOnKeyActListener(); RootView::GetInstance()->RemoveAll(); + RootView::GetInstance()->ClearFocus(); return; }