From: SnickerSun Date: Wed, 27 Mar 2024 12:34:16 +0000 (+0800) Subject: 缩短长按关机弹窗时间 X-Git-Tag: release_V1.2.70_20241020_135402~1250^2~1 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=c1a73b7e1e33174b4bbb775e8906282d8368c7e9;p=mirrors%2FFD230.git 缩短长按关机弹窗时间 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootModel.cpp index f2c69ac93..d1d09ecc9 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootdevice/src/RebootModel.cpp @@ -77,7 +77,7 @@ namespace OHOS bool RebootModel::RegisterLongPressEvents(void) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RebootModel::RegisterLongPressEvents"); - int32_t ret = uapi_button_register_event_cb(OnKeyLongPress4s_Callback, BUTTON_PWR_LONGPRESS_4S); + int32_t ret = uapi_button_register_event_cb(OnKeyLongPress4s_Callback, BUTTON_PWR_LONGPRESS_3S); if (ret != ERRCODE_SUCC) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Register LongPress Events err,ret = %d", ret);