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
NativeAbility::GetInstance().EnterSlice(viewId, TransitionType::TRANSITION_HEXAGONS);
hexagonsView->ClearFocus();
}
+ #endif
return true;
}