// 重启
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;
}