优化未绑定对话bug 2633/target/2 2634/1 2634/head
authorxue <2144439972@qq.com>
Wed, 29 Oct 2025 10:32:38 +0000 (18:32 +0800)
committerxue <2144439972@qq.com>
Wed, 29 Oct 2025 10:32:38 +0000 (18:32 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp

index 01118d7..0328ebc 100644 (file)
@@ -283,7 +283,8 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleFuncKey: KEY_TYPE_FUNC press");
             
             // 在非对话模式下按下FUNC键时,预先初始化音频
-            if (!isDialogueing && (currentView == THUNDERBIRD_DIALOGUEVIEW && currentSubView == ThunderBirdDialogueView::THUNDERBIRD_DIALOGUEVIEW_STATUS_SHOW)) {
+            if (!isDialogueing && ((currentView == THUNDERBIRD_DIALOGUEVIEW && currentSubView == ThunderBirdDialogueView::THUNDERBIRD_DIALOGUEVIEW_STATUS_SHOW) 
+            || (currentView == THUNDERBIRD_GUIDEVIEW))) {
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "非对话模式下FUNC键按下,预先初始化音频");
                 do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_AUDIO_INIT, NULL, 0);
             }