From: luozheng <1732036298@qq.com> Date: Thu, 15 Aug 2024 07:53:15 +0000 (+0800) Subject: 修复错误关闭了单击切换AI模型功能 X-Git-Tag: release_V1.2.70_20241020_135402~638^2~5^2~14 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=71ce03e86fb6e96009d976a42801f5c5408c181e;p=mirrors%2FFD230.git 修复错误关闭了单击切换AI模型功能 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp index 079bdbcfe..0a994a068 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-07-18 14:55:27 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-08-15 14:32:47 + * @LastEditTime: 2024-08-15 14:54:53 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/rebootandshutdown/src/RebootAndShutdownModel.cpp */ @@ -180,11 +180,12 @@ namespace OHOS uint16_t curSliceId = NativeAbility::GetInstance().GetCurSliceId(); if (curSliceId == VIEW_AI_VOICE) // 如果当前已在ai语音界面不做切换 { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VIEW_AI_VOICE is not switched"); - return; + AiVoiceModel::GetInstance().FunctionKeyOnClickToChangeAIModel(); + } + else + { + NativeAbility::GetInstance().EnterSlice(VIEW_AI_VOICE); // 切换到Ai语音界面 } - // 全局切换到Ai语音界面 - NativeAbility::GetInstance().EnterSlice(VIEW_AI_VOICE); } return;