From: xue <2144439972@qq.com> Date: Fri, 28 Nov 2025 04:18:23 +0000 (+0800) Subject: 修复哄睡bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ae529055c18e1c6090b2c9bd5fe3afba596393cf;p=mirrors%2FFD230.git 修复哄睡bug --- 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); } }