取消故事超时定时器 3341/1 3341/head
authorxue <2144439972@qq.com>
Sat, 11 Apr 2026 13:39:50 +0000 (21:39 +0800)
committerxue <2144439972@qq.com>
Sat, 11 Apr 2026 13:39:50 +0000 (21:39 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp

index 0cf1b14..b523f65 100644 (file)
@@ -3978,17 +3978,18 @@ extern "C" {
         if (currentView == THUNDERBIRD_LULLABYVIEW &&
             currentSubView == ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_4)
         {
-            // 如果是第一句音频播放完成,启动5秒超时定时器
+            // 如果是第一句音频播放完成,启动5秒超时定时器(首句暂不开启,见下行注释)
             if (!m_firstStoryAudioPlayed) {
-                WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleAudioPlaybackEnd: 第一句音频播放完成,启动5秒超时定时器");
+                WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,
+                    "ThunderBirdModel::HandleAudioPlaybackEnd: 第一句音频播放完成(暂不启动5秒超时定时器)");
                 m_firstStoryAudioPlayed = true;
-                StartStoryAudioPlaybackTimeoutTimer();
+                // StartStoryAudioPlaybackTimeoutTimer(); /* 先注释:第一句播完不开启5秒超时 */
             } else {
                 // 后续音频播放结束,刷新5秒超时定时器
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleAudioPlaybackEnd: 故事模式音频播放结束,刷新5秒超时定时器");
                 // 停止旧的定时器并重新启动,实现刷新
-                StopStoryAudioPlaybackTimeoutTimer();
-                StartStoryAudioPlaybackTimeoutTimer();
+                //  StopStoryAudioPlaybackTimeoutTimer();
+                //StartStoryAudioPlaybackTimeoutTimer();
             }
         }