From 71ce03e86fb6e96009d976a42801f5c5408c181e Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 15 Aug 2024 15:53:15 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E5=85=B3?= =?utf8?q?=E9=97=AD=E4=BA=86=E5=8D=95=E5=87=BB=E5=88=87=E6=8D=A2AI?= =?utf8?q?=E6=A8=A1=E5=9E=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../rebootandshutdown/src/RebootAndShutdownModel.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; -- 2.17.1