From: hcj <1224667075@qq.com> Date: Wed, 2 Oct 2024 06:41:59 +0000 (+0800) Subject: 优化传输中处理增加关闭抬腕亮屏 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=6c55a6722c90c14e16ad498749db4fec8b927210;p=mirrors%2FFD230.git 优化传输中处理增加关闭抬腕亮屏 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/callerlog/src/CallerLogModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/callerlog/src/CallerLogModel.cpp index 35a0c5e05..754e78a27 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/callerlog/src/CallerLogModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/callerlog/src/CallerLogModel.cpp @@ -704,7 +704,7 @@ static void ScoConnectHandle(void) case HFP_HF_CALL_STATE_ACTIVE: if (g_callOperate == OPERATE_PHONE_ACTIVE) { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[ScoConnectHandle] OPERATE_PHONE_ACTIVE"); - TransCallToMobilePhone(); + // TransCallToMobilePhone(); return; } CallerLogModel::GetInstance()->SetCallStatus(true); diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp index af0fc9da1..89e00de5a 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp @@ -149,9 +149,9 @@ namespace OHOS display_api->turn_on_screen(); } display_api->set_auto_timeout_function(true); + + uapi_take_to_wake(1); - - RootView::GetInstance()->Remove(UIViewGroup_transmitting); delete UIViewGroup_transmitting; UIViewGroup_transmitting = nullptr; @@ -893,6 +893,7 @@ namespace OHOS display_api->turn_on_screen(); } display_api->set_auto_timeout_function(false); + uapi_take_to_wake(0); NotificationManager::GetInstance()->RegisterNotifyCleanupFunction(Freetransmitting);