解决从applist进入其他slice然后退回到applist死机问题。在使用表冠聚焦到某一视图时,退出该slice需要取消聚焦。
authorluozheng <1732036298@qq.com>
Wed, 13 Mar 2024 07:20:00 +0000 (15:20 +0800)
committerluozheng <1732036298@qq.com>
Wed, 13 Mar 2024 07:20:00 +0000 (15:20 +0800)
code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp

index 4c9a270..38cbe7f 100644 (file)
@@ -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;
     }