From fff3a9d393d04d0ec9ce9a920c86525918bc036b Mon Sep 17 00:00:00 2001 From: Caisking Date: Thu, 8 May 2025 11:56:58 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9applist=E8=BF=9B=E5=85=A5?= =?utf8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/applist/src/ApplistPresenter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/applist/src/ApplistPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/applist/src/ApplistPresenter.cpp index 3442b147c..e96791a42 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/applist/src/ApplistPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/applist/src/ApplistPresenter.cpp @@ -67,7 +67,7 @@ REGIST_SLICE(VIEW_APPLIST, ApplistView, ApplistPresenter); AppViewId viewId = itemView->GetViewId(); if (FloatMore(hexagonsView->GetGlobalScale(), 2.0f)) { // 2.0 threshold for beginning transition hexagonsView->StopRotateAnimator(); - NativeAbility::GetInstance().ChangeSlice(viewId, TransitionType::TRANSITION_HEXAGONS); + NativeAbility::GetInstance().EnterSlice(viewId, TransitionType::TRANSITION_HEXAGONS); hexagonsView->ClearFocus(); } return true; @@ -120,9 +120,10 @@ REGIST_SLICE(VIEW_APPLIST, ApplistView, ApplistPresenter); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ApplistPresenter::OnClick viewid = %d", viewId); if (viewId < VIEW_MAX_INTER_APP) { if (viewId == VIEW_SETTING && style == AppListStyle::APPLIST_STYLE) { - NativeAbility::GetInstance().ChangeSlice(viewId, type, gSliceDefaultPriority, true); + //TODO EnterSlice 需要适配新函数 + NativeAbility::GetInstance().ChangeSlice(viewId, type, gSliceDefaultPriority, true); } else { - NativeAbility::GetInstance().ChangeSlice(viewId, type); + NativeAbility::GetInstance().EnterSlice(viewId, type); } return true; } else if (viewId == VIEW_EXTERN_APP) { -- 2.17.1