From 92fa00f74f7a61caa55865f29b7503b40ce073f7 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Fri, 15 Nov 2024 10:56:27 +0800 Subject: [PATCH] =?utf8?q?=E5=9B=9E=E6=92=A4native=E4=BF=AE=E6=94=B9?= =?utf8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/rebootdevice/src/RebootPresenter.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/sdk/application/wearable/nativeapp/nativeui/rebootdevice/src/RebootPresenter.cpp b/code/sdk/application/wearable/nativeapp/nativeui/rebootdevice/src/RebootPresenter.cpp index df2f52c4a..948e0c9f6 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/rebootdevice/src/RebootPresenter.cpp +++ b/code/sdk/application/wearable/nativeapp/nativeui/rebootdevice/src/RebootPresenter.cpp @@ -55,14 +55,13 @@ bool RebootPresenter::OnClick(UIView& view, const ClickEvent& event) // 重启 WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "REBOOTDEVICE_BUTTON OnClick"); //GetPMSDefaultInterface()->RebootDevice(NULL, NULL); - // uapi_reboot_device(); - shutdown_reboot_prejobs(REBOOT_TYPE); - } else if (strcmp(view.GetViewId(), SHUTDOWNDEVICE_BUTTON) == 0) { + uapi_reboot_device(); + } else if (strcmp(view.GetViewId(), SHUTDOWNDEVICE_BUTTON) == 0) { // 关机 WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SHUTDOWNDEVICE_BUTTON OnClick"); //GetPMSDefaultInterface()->ShutDownDevice(NULL, NULL); - // uapi_poweroff_device(); - shutdown_reboot_prejobs(SHUTDOWN_TYPE); + uapi_poweroff_device(); + //shutdown_reboot_prejobs(SHUTDOWN_TYPE); } return true; } -- 2.17.1