增加ota传输时自动拒接来电 1123/2
authorhcj <1224667075@qq.com>
Tue, 8 Oct 2024 07:42:13 +0000 (15:42 +0800)
committerhcj <1224667075@qq.com>
Tue, 8 Oct 2024 07:42:13 +0000 (15:42 +0800)
code/sdk/application/wearable/service/msg_center/include/notify/transmitting.h
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp
code/sdk/application/wearable/service/msg_center/src/notify/makephone_notification.cpp
code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp

index 7cf3b5b..d5371ae 100644 (file)
@@ -19,6 +19,7 @@ extern "C" {
 #endif
 
     UIViewGroup* transmittingShow(void);
+    bool transmittingISShow(void);
     void set_transmittingShow_falg(uint8_t falg);
     void Freetransmitting(void);
    
index de9b712..f02c162 100644 (file)
@@ -938,7 +938,7 @@ void MsgCenterNotifyCatIncomingCallProc(const Topic topic, Request* req)
         }
       
         if((NotificationManager::GetInstance()->GetWatchCallStatus() &&
-        (CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone)) || uapi_dev_runtime_get_train_status())
+        (CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone)) || uapi_dev_runtime_get_train_status() || transmittingISShow())
         {
 
             CallerLogModel::GetInstance()->tempSetoperateNumberCAT1(call_data,req->len);
index 66ba685..98ce870 100755 (executable)
@@ -556,7 +556,7 @@ static void WatchFinishHandle(void)
             {
                 addcalllog();
             }
-            else if(uapi_dev_runtime_get_train_status())
+            else if(uapi_dev_runtime_get_train_status() || transmittingISShow())
             {
                 addcalllog();
                 StatusReset();
index 990561e..71bc38b 100644 (file)
@@ -853,7 +853,13 @@ namespace OHOS
 
     }
 
-
+    bool transmittingISShow(void)
+    {
+       if(UIViewGroup_transmitting)
+       return true;
+       else
+       return false;
+    }
 
     UIViewGroup *transmittingShow()
     {