优化传输中处理增加关闭抬腕亮屏
authorhcj <1224667075@qq.com>
Wed, 2 Oct 2024 06:41:59 +0000 (14:41 +0800)
committerhcj <1224667075@qq.com>
Wed, 2 Oct 2024 06:41:59 +0000 (14:41 +0800)
code/sdk/application/wearable/fd230app/nativeui/callerlog/src/CallerLogModel.cpp
code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp

index 35a0c5e..754e78a 100644 (file)
@@ -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);
index af0fc9d..89e00de 100644 (file)
@@ -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);