From: luozheng <1732036298@qq.com> Date: Sat, 28 Feb 2026 11:02:18 +0000 (+0800) Subject: 还原主界面和applist界面切换 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3234%2Fhead;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 8a71942be..c7e6ec747 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_ZOOM); + NativeAbility::GetInstance().ChangeSlice(VIEW_MAIN,TransitionType::TRANSITION_INVALID); } } else // 当前页面是主表盘 @@ -108,7 +108,11 @@ void KeyInputListener::HandlePowerKeyPress(uint16_t currentViewId) } else { - NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_ZOOM); + if (ApplistModel::GetInstance().GetCurrentStyle() == AppListStyle::WATERFALL_STYLE) { + NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_INVALID); + } else { + NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TransitionType::TRANSITION_INVALID); + } } } }