From: hcj <1224667075@qq.com> Date: Fri, 15 Nov 2024 02:56:27 +0000 (+0800) Subject: 回撤native修改代码 X-Git-Tag: fd230_release_V1.3.102~71^2~7 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1406%2F2;p=mirrors%2FFD230.git 回撤native修改代码 --- 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; }