From bcc848a472e7c33bcee38265a5d45f7c8d2fae24 Mon Sep 17 00:00:00 2001 From: CCC <2393524978@qq.com> Date: Fri, 27 Oct 2023 14:09:49 +0800 Subject: [PATCH] gengxin --- 2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c | 4 ++++ 2.sdk/sdk/gui/lv_watch/mmi_sundry/mmi_sundry.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c index 5183487d..18db76f4 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c +++ b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c @@ -373,7 +373,11 @@ bool mmi_protocol_action_send_talk(char * data_buff, int data_buff_len) if(false == mmi_protocol_check_state_before_send_action()) return false; +#ifdef __MMI_WECHAT_SUPPORT__ return mmi_protocol_fzd_ACTION_TALK(data_buff, data_buff_len); +#else + return false; +#endif } bool mmi_protocol_action_send_photo(uint8_t type, char * time_str, char * data_buff, int data_buff_len) diff --git a/2.sdk/sdk/gui/lv_watch/mmi_sundry/mmi_sundry.c b/2.sdk/sdk/gui/lv_watch/mmi_sundry/mmi_sundry.c index 678dd9a3..28311a75 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_sundry/mmi_sundry.c +++ b/2.sdk/sdk/gui/lv_watch/mmi_sundry/mmi_sundry.c @@ -253,6 +253,8 @@ void mmi_watch_searching_aciton(void) { return ; } + +#ifdef __MMI_WECHAT_SUPPORT__ if(true == wechat_msg_voice_is_recording() || true == wechat_msg_item_is_sending() || true == wechat_msg_voice_is_playing() @@ -260,6 +262,7 @@ void mmi_watch_searching_aciton(void) { return; } +#endif if(NULL != lv_watch_get_activity_obj(ACT_ID_WATCH_SEARCHING)) { -- 2.17.1