From ae529055c18e1c6090b2c9bd5fe3afba596393cf Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Fri, 28 Nov 2025 12:18:23 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E5=93=84=E7=9D=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdPresenter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 603a8936d..19ddbd96f 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 @@ -392,7 +392,8 @@ namespace OHOS if(currentView == THUNDERBIRD_LULLABYVIEW && currentSubView == ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_3) { - HandleLullabyFunction(currentView, currentSubView); + HandleLullabyFunction(currentView, currentSubView); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleFuncKey: KEY_TYPE_FUNC press, lullaby mode"); // ln_ws_start_audio_chat(LN_AUDIO_CHAT_CHOOSE_STORY_REQUEST); // ThunderBirdLullabyView::GetInstance()->listenAnimator->Start(); } @@ -503,11 +504,14 @@ namespace OHOS //清空音频文本队列 ThunderBirdModel::GetInstance()->ClearAudioTextQueue(); } else if(currentView == THUNDERBIRD_DIALOGUEVIEW && currentSubView == ThunderBirdDialogueView::THUNDERBIRD_DIALOGUEVIEW_SPEAKING) { + AI_ForceInterrupt(); + ln_ws_end_audio_chat(); ln_ws_send_voice_chat_interrupt("新对话开始"); + ThunderBirdDialogueView::GetInstance()->IsReconnect = true; WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "开始录音,跳转到聆听状态"); // 开始录音 ThunderBirdMainView::GetInstance()->ChangeView(currentView, THUNDERBIRD_DIALOGUEVIEW, ThunderBirdDialogueView::THUNDERBIRD_DIALOGUEVIEW_LISTENING); - ThunderBirdDialogueView::GetInstance()->UpdateDialogueText("超认真聆听中"); + // ThunderBirdDialogueView::GetInstance()->UpdateDialogueText("超认真聆听中"); ln_ws_start_audio_chat(LN_AUDIO_CHAT_VOICE_CHAT_REQUEST); } } -- 2.17.1