优化对话状态逻辑
authorxue <2144439972@qq.com>
Thu, 27 Nov 2025 09:37:09 +0000 (17:37 +0800)
committerxue <2144439972@qq.com>
Thu, 27 Nov 2025 09:37:09 +0000 (17:37 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp

index 253158e..2838f1c 100644 (file)
@@ -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,        // 聆听中
index 662c15e..21b0886 100644 (file)
@@ -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); }
+
+    }
 }