From: SnickerSun Date: Fri, 14 Jun 2024 10:08:06 +0000 (+0800) Subject: 取消蜂窝界面表冠直接进入应用的能力 X-Git-Tag: release_V1.2.70_20241020_135402~994^2~8^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a2aad7e3cec2571b8f817ab0dc2a9fdb352b27fa;p=mirrors%2FFD230.git 取消蜂窝界面表冠直接进入应用的能力 --- 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; }