去除AI语音亮5s屏问题,已有60s亮屏操作 1027/1 1027/head
authorluozheng <1732036298@qq.com>
Thu, 26 Sep 2024 14:16:58 +0000 (22:16 +0800)
committerluozheng <1732036298@qq.com>
Thu, 26 Sep 2024 14:16:58 +0000 (22:16 +0800)
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp

index 1492bac..724d37d 100644 (file)
@@ -2,7 +2,7 @@
  * @Author: luozheng 1732036298@qq.com
  * @Date: 2024-06-20 15:14:50
  * @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-26 17:54:07
+ * @LastEditTime: 2024-09-26 22:12:14
  * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
  */
 #include "aivoice/include/AiVoiceModel.h"
@@ -373,10 +373,6 @@ namespace OHOS
         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateUserQuestionStr");
 
         RemoveLastTwoItemsOrClear();
-        /* -------------------------------------------------------------------------- */
-        ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
-        /* -------------------------------------------------------------------------- */
-
         if (!AddUserQuestionToChatItems())
         {
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AddUserQuestionToChatItems fail!!");
@@ -412,10 +408,6 @@ namespace OHOS
     {
         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateAiAnswerStr");
 
-        /* -------------------------------------------------------------------------- */
-        ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
-        /* -------------------------------------------------------------------------- */
-
         int index = GetChatContentListCount() - 1;
         if (index < 0 || index >= MaxChatContentListCount)
         {
@@ -526,7 +518,6 @@ namespace OHOS
         if (AIResponseType == AiVoiceModel::AI_RECORDING_PARSING_ERROR || AIResponseType == AiVoiceModel::AI_RESPONSE_ERROR)
         {
             SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)errnote.c_str(), errnote.length());
-            ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
             return;
         }
         aiAnswerStr += str;
@@ -707,7 +698,6 @@ namespace OHOS
                 AiVoiceModel::GetInstance().SetErrnote("The connection timed out. Please restart the conversation");
                 std::string str = AiVoiceModel::GetInstance().GetErrnote();
                 SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length());
-                ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
             }
         }
         return;