From: xue <2144439972@qq.com> Date: Fri, 21 Nov 2025 07:28:35 +0000 (+0800) Subject: 优化音频为初始化的提示 X-Git-Tag: V1.0.9_20251128_194606_LN~26 X-Git-Url: http://git.snicker.com.cn/css/static/script.js?a=commitdiff_plain;h=refs%2Fchanges%2F2786%2Fhead;p=mirrors%2FFD230.git 优化音频为初始化的提示 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 75d6b9f69..079d93b6e 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -836,7 +836,7 @@ namespace OHOS bool wsConnected = (wsState == 2); // WS_STATE_CONNECTED = 2 //只要开机的时候检查 - if (!wsConnected && ThunderBirdModel::GetInstance()->init_falg == false) { + if (!wsConnected && ThunderBirdModel::GetInstance()->init_falg == false && ln_ws_is_audio_initialized() == false) { // WebSocket未连接,显示网络断开提醒界面,不设置定时器 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "进入对话模式时WebSocket未连接,显示网络断开提醒 (wsState=%d)", wsState); // 设置标志,表示用户想要进入对话模式但因为WebSocket未连接而显示提醒