From: Caisking <3449750381@qq.com> Date: Tue, 14 Jan 2025 09:05:03 +0000 (+0800) Subject: 解绑:增加解绑时因为设置了亮屏时间而导致无法长亮屏 X-Git-Tag: v1.3.113-repair_tp~21^2~12 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=fb7d5d2d65ad38c939ee7a8286f1a5850c4f7393;p=mirrors%2FFD230.git 解绑:增加解绑时因为设置了亮屏时间而导致无法长亮屏 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp b/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp index 6346147e1..f3f1ee89a 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp @@ -215,6 +215,7 @@ extern "C" // set_back_to_home_interval(g_interval); const power_display_svr_api_t *display_api = power_display_svr_get_api(); display_api->set_screen_set_keepon_timeout(0); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[ScreenTurnOff] turn_off_screen 0"); #endif return; } diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp index 12a5b16a8..3f188d37b 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp @@ -285,6 +285,7 @@ void FreeMessageView(void) { MessageGroupView = nullptr; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Free MessageView succeed!!"); } + //恢复亮屏 ScreenTurnOff(); return; } diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp index 5837abba9..c0bd895dc 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp @@ -560,6 +560,7 @@ namespace OHOS ui_api_vibrate_once_func(); // 震动一次 } + ScreenTurnOff(); //先设置为0 ScreenTurnOn(40 * 1000); // 亮屏操作 40秒关闭 PairingViewEventListener::GetInstance().Pairing_StartTimer(); // 开启一个40s后弹窗自动销毁定时器