From: luozheng <1732036298@qq.com> Date: Sat, 28 Feb 2026 06:52:30 +0000 (+0800) Subject: applist和主界面切换添加动画切换 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=59ac839d0a6a76305b319546ff4c917bff2afbcd;p=mirrors%2FFD230.git applist和主界面切换添加动画切换 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/key/src/KeyInputListener.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/key/src/KeyInputListener.cpp index c7e6ec747..8a71942be 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/key/src/KeyInputListener.cpp @@ -85,7 +85,7 @@ void KeyInputListener::HandlePowerKeyPress(uint16_t currentViewId) { if (mcu_pms_is_screen_on()) { - NativeAbility::GetInstance().ChangeSlice(VIEW_MAIN,TransitionType::TRANSITION_INVALID); + NativeAbility::GetInstance().ChangeSlice(VIEW_MAIN,TransitionType::TRANSITION_ZOOM); } } else // 当前页面是主表盘 @@ -108,11 +108,7 @@ void KeyInputListener::HandlePowerKeyPress(uint16_t currentViewId) } else { - if (ApplistModel::GetInstance().GetCurrentStyle() == AppListStyle::WATERFALL_STYLE) { - NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_INVALID); - } else { - NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_INVALID); - } + NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_ZOOM); } } }