From 0936d7639398381c8f5b144f7be3458f7377995d Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 2 Oct 2024 14:41:59 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E4=BC=A0=E8=BE=93=E4=B8=AD?= =?utf8?q?=E5=A4=84=E7=90=86=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=AD=E6=8A=AC?= =?utf8?q?=E8=85=95=E4=BA=AE=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/callerlog/src/CallerLogModel.cpp | 2 +- .../wearable/service/msg_center/src/notify/transmitting.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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); -- 2.17.1