From: xue <2144439972@qq.com> Date: Mon, 12 Jan 2026 11:20:10 +0000 (+0800) Subject: 修复哄睡设置提醒不触发问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=4a2c18d749020577ae1edcfb1278d16e3d36b95f;p=mirrors%2FFD230.git 修复哄睡设置提醒不触发问题 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index f932dc162..033cb9091 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -3316,6 +3316,8 @@ extern "C" { ThunderBirdMainView::GetInstance()->listenIcon->SetVisible(false); } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "录音结束,跳转到故事界面"); + // 初始化HTTP下载服务(语音识别故事) + ln_http_download_init(); // 进入哄睡模式时切换为眨眼表情 OnEnterLullabyMode(); view->ChangeView(currentView, THUNDERBIRD_LULLABYVIEW, ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_4); 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 c3ad03467..6c2711190 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 @@ -817,6 +817,7 @@ namespace OHOS break; case ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_3: { + ln_http_download_init(); // 进入哄睡模式时切换为眨眼表情 do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_AUDIO_INIT_VAD_DISABLE, NULL, 0); ThunderBirdModel::GetInstance()->OnEnterLullabyMode(); @@ -833,7 +834,7 @@ namespace OHOS } ln_ws_send_random_story_request("随机故事"); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleLullabyViewNavigation: 随机故事"); - } + } break; // THUNDERBIRD_LULLABYVIEW_4 时按 VENDOR_UP 键会触发音量调节(IsVolumeAdjustmentAvailable 返回 true), // 不会执行到这里。从 VIEW_4 跳转到 VIEW_5 应该通过长按 FUNC 键触发(HandleFuncKeyLongPress)。