From: luozheng <1732036298@qq.com> Date: Thu, 26 Sep 2024 14:16:58 +0000 (+0800) Subject: 去除AI语音亮5s屏问题,已有60s亮屏操作 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=16cad52b89f9b6d4e642e20cee708f994b59b29b;p=mirrors%2FFD230.git 去除AI语音亮5s屏问题,已有60s亮屏操作 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp index 1492bac73..724d37dd5 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -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;