From a2aad7e3cec2571b8f817ab0dc2a9fdb352b27fa Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Fri, 14 Jun 2024 18:08:06 +0800 Subject: [PATCH] =?utf8?q?=E5=8F=96=E6=B6=88=E8=9C=82=E7=AA=9D=E7=95=8C?= =?utf8?q?=E9=9D=A2=E8=A1=A8=E5=86=A0=E7=9B=B4=E6=8E=A5=E8=BF=9B=E5=85=A5?= =?utf8?q?=E5=BA=94=E7=94=A8=E7=9A=84=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/applist/src/ApplistPresenter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistPresenter.cpp index 95175ac50..888874039 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistPresenter.cpp @@ -72,15 +72,18 @@ namespace OHOS { bool ApplistPresenter::OnRotate(UIView& view, const RotateEvent& event) { + #if 0 //取消放大进入应用 UICustomHexagonsList* hexagonsView = dynamic_cast(&view); if (hexagonsView == nullptr) { return false; } + int8_t index = hexagonsView->GetFocusedImgIndex(); uint8_t focusIndex_ = 0; if (index >= 0) { focusIndex_ = static_cast(index); } + HexagonsItemView *itemView = dynamic_cast(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; } -- 2.17.1