From 8736358831aba9c098dbc3bfb2ffa2eff0af7838 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 24 Jul 2024 12:04:45 +0800 Subject: [PATCH] =?utf8?q?=E6=B3=A8=E9=87=8AKeyInputListener=E4=B8=ADpower?= =?utf8?q?=E9=94=AE=E9=95=BF=E6=8C=89=E8=BF=9B=E5=85=A5=E5=BC=80=E5=85=B3?= =?utf8?q?=E6=9C=BA=E7=95=8C=E9=9D=A2(=E8=AF=A5=E7=95=8C=E9=9D=A2=E5=B7=B2?= =?utf8?q?=E7=BB=8F=E5=BC=83=E7=94=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativelauncher/src/NativeLauncher.cpp | 2 +- .../wearable/fd230app/nativeui/key/src/KeyInputListener.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp index 9c35cbc88..c4f761c3e 100644 --- a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp @@ -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() {} diff --git a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp index 5566ec8a8..8f293635b 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp @@ -63,7 +63,7 @@ namespace OHOS if (keyID == static_cast(ZliteKeyCode::ZLITE_KEY_POWER)) { // 电源按键 // 切换到关机/重启卡片 - NativeAbility::GetInstance().ChangeSlice(VIEW_SHUTDOWN_OR_REBOOT); + // NativeAbility::GetInstance().ChangeSlice(VIEW_SHUTDOWN_OR_REBOOT); } else if (keyID == static_cast(ZliteKeyCode::ZLITE_KEY_FUNC)) { // 功能按键 -- 2.17.1