注释KeyInputListener中power键长按进入开关机界面(该界面已经弃用)
authorluozheng <1732036298@qq.com>
Wed, 24 Jul 2024 04:04:45 +0000 (12:04 +0800)
committerluozheng <1732036298@qq.com>
Wed, 24 Jul 2024 04:04:45 +0000 (12:04 +0800)
code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp
code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp

index 9c35cbc..c4f761c 100644 (file)
@@ -394,7 +394,7 @@ namespace OHOS
         {VIEW_CONNECT_PHONE, "ConnectPhoneView"},
         //{VIEW_PHONE, "phoneview"},
         {VIEW_INDOORWALK, "IndoorWalkView"},
-        {VIEW_SHUTDOWN_OR_REBOOT, "RebootView"},
+        // {VIEW_SHUTDOWN_OR_REBOOT, "RebootView"},
         {VIEW_TEST, "testView"}};
 
     NativeLauncher::NativeLauncher() {}
index 5566ec8..8f29363 100644 (file)
@@ -63,7 +63,7 @@ namespace OHOS
         if (keyID == static_cast<uint16_t>(ZliteKeyCode::ZLITE_KEY_POWER))
         { // 电源按键
             // 切换到关机/重启卡片
-            NativeAbility::GetInstance().ChangeSlice(VIEW_SHUTDOWN_OR_REBOOT);
+            // NativeAbility::GetInstance().ChangeSlice(VIEW_SHUTDOWN_OR_REBOOT);
         }
         else if (keyID == static_cast<uint16_t>(ZliteKeyCode::ZLITE_KEY_FUNC))
         { // 功能按键