From: luozheng <1732036298@qq.com> Date: Thu, 16 Oct 2025 09:00:15 +0000 (+0800) Subject: 绑定弹窗优化,解决绑定弹窗有概率不出现问题,272,230,n9同步修改 X-Git-Tag: V1.0.9_20251128_194606_LN~225 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=86c3bca7aac065d228c2f8e26d5e3a751adce9aa;p=mirrors%2FFD230.git 绑定弹窗优化,解决绑定弹窗有概率不出现问题,272,230,n9同步修改 --- diff --git a/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp index 9e00b753b..3f96bdfa1 100644 --- a/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp @@ -477,6 +477,10 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) }else{ PairingViewEventListener::GetInstance().SetDeviceName(NULL); } + if(NotificationManager::GetInstance()->HasNotifyShowing()) + { + NotificationManager::GetInstance()->StopNotify(); + } NotificationManager::GetInstance()->ShowNotify(showDeviceBindingNotify, (uint16_t)topic, true); break; case DEVICEUNBIND: diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp index f8c18b721..eb15c2b3e 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp @@ -472,6 +472,10 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) }else{ PairingViewEventListener::GetInstance().SetDeviceName(NULL); } + if(NotificationManager::GetInstance()->HasNotifyShowing()) + { + NotificationManager::GetInstance()->StopNotify(); + } NotificationManager::GetInstance()->ShowNotify(showDeviceBindingNotify, (uint16_t)topic, true); break; case DEVICEUNBIND: diff --git a/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp index 37f7369c3..ab4e8b47b 100644 --- a/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp @@ -472,6 +472,10 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) }else{ PairingViewEventListener::GetInstance().SetDeviceName(NULL); } + if(NotificationManager::GetInstance()->HasNotifyShowing()) + { + NotificationManager::GetInstance()->StopNotify(); + } NotificationManager::GetInstance()->ShowNotify(showDeviceBindingNotify, (uint16_t)topic, true); break; case DEVICEUNBIND: