还原主界面和applist界面切换 3234/1 3234/head 3235/target/1 3237/target/1
authorluozheng <1732036298@qq.com>
Sat, 28 Feb 2026 11:02:18 +0000 (19:02 +0800)
committerluozheng <1732036298@qq.com>
Sat, 28 Feb 2026 11:02:18 +0000 (19:02 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/key/src/KeyInputListener.cpp

index 8a71942..c7e6ec7 100644 (file)
@@ -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);
+                    }
                 }
             }
         }