取消蜂窝界面表冠直接进入应用的能力
authorSnickerSun <snickersun@163.com>
Fri, 14 Jun 2024 10:08:06 +0000 (18:08 +0800)
committerSnickerSun <snickersun@163.com>
Fri, 14 Jun 2024 10:08:06 +0000 (18:08 +0800)
code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistPresenter.cpp

index 95175ac..8888740 100644 (file)
@@ -72,15 +72,18 @@ namespace OHOS {
 
     bool ApplistPresenter::OnRotate(UIView& view, const RotateEvent& event)
     {
+        #if 0 //取消放大进入应用
         UICustomHexagonsList* hexagonsView = dynamic_cast<UICustomHexagonsList *>(&view);
         if (hexagonsView == nullptr) {
             return false;
         }
+        
         int8_t index = hexagonsView->GetFocusedImgIndex();
         uint8_t focusIndex_ = 0;
         if (index >= 0) {
             focusIndex_ = static_cast<uint8_t>(index);
         }
+        
         HexagonsItemView *itemView = dynamic_cast<HexagonsItemView *>(hexagonsView->GetViewByIndex(focusIndex_));
         AppViewId viewId = itemView->GetViewId();
         if (FloatMore(hexagonsView->GetGlobalScale(), 2.0f)) { // 2.0 threshold for beginning transition
@@ -89,6 +92,7 @@ namespace OHOS {
             NativeAbility::GetInstance().EnterSlice(viewId, TransitionType::TRANSITION_HEXAGONS);
             hexagonsView->ClearFocus();
         }
+        #endif
         return true;
     }