From: xue <2144439972@qq.com> Date: Thu, 27 Nov 2025 09:37:09 +0000 (+0800) Subject: 优化对话状态逻辑 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=9f9b6253f6f303ab4d63b70fe7a4e1cfa16c9f5b;p=mirrors%2FFD230.git 优化对话状态逻辑 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h index 253158e93..2838f1ccc 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h @@ -133,7 +133,8 @@ namespace OHOS void UpdateDialogueText(const char *text); void AudioPlaybackEnd(); void Isband(bool); - + void dialogue_first(); + bool DialogueFirst{true}; enum : int16_t { THUNDERBIRD_DIALOGUEVIEW_SPEAKING = 0, // 说话中 THUNDERBIRD_DIALOGUEVIEW_LISTENING, // 聆听中 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp index 662c15e88..21b088696 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp @@ -283,6 +283,22 @@ namespace OHOS micIcon->SetVisible(false); } } + + void ThunderBirdDialogueView::dialogue_first() + { + DialogueFirst = false; + if (TextLabel) + { + TextLabel->SetPosition(111, 64, 180, 42); + TextLabel->SetText("进入对话模式"); + TextLabel->SetAlign(TEXT_ALIGNMENT_LEFT, TEXT_ALIGNMENT_LEFT); + TextLabel->SetVisible(true); + } + //动效图标 + if (listenAnimator) { listenAnimator->SetVisible(true); listenAnimator->Stop(); } + if (listenIcon) { listenIcon->SetVisible(true); } + + } }