return result;
}
+bool wechat_screen_is_prohibit_interrupted(void)
+{
+ bool result = false;
+
+ if(true == wechat_msg_voice_is_recording()
+ || true == wechat_msg_item_is_sending()
+ || true == wechat_msg_voice_is_playing()
+ )
+ {
+ result = true;
+ }
+
+ return result;
+}
+
void wechat_receive_audio_play_audio_ctrl_callback(AUDIO_CTRL_PRIORITY priority)
{
WECHAT_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: priority=%d\n", __FUNCTION__, __LINE__, priority);
void mmi_wechat_msg_info_init(void);
void wechat_msg_info_nv_write(void);
-bool wechat_msg_voice_is_playing(void);
-bool wechat_msg_voice_is_recording(void);
-bool wechat_msg_item_is_sending(void);
+bool wechat_screen_is_prohibit_interrupted(void);
void wechat_msg_receive_update_ui(void);
bool wechat_msg_receive_from_server(char * data_buff, int data_buff_len, nv_wechat_msg_type_e type);
return result;
}
+bool wechat_screen_is_prohibit_interrupted(void)
+{
+ bool result = false;
+
+ if(true == wechat_msg_voice_is_recording()
+ || true == wechat_msg_item_is_sending()
+ || true == wechat_msg_voice_is_playing()
+ )
+ {
+ result = true;
+ }
+
+ return result;
+}
+
void wechat_receive_audio_play_audio_ctrl_callback(AUDIO_CTRL_PRIORITY priority)
{
WECHAT_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: priority=%d\n", __FUNCTION__, __LINE__, priority);
return int_value;
}
+// hex str:4 -> utf8:3
bool mmi_unicode_hex_str_to_utf8_str(unsigned char * src, uint32_t src_len, unsigned char * dest, uint32_t * dest_len)
{
if ((NULL == src) || (0 == src_len) || (NULL == dest))
if(AUDIO_CTRL_PRIORITY_SEARCH == priority)
{
- //if (AUDIO_CTRL_PRIORITY_SEARCH == Hal_Audio_Manage_Start_Req(AUDIO_CTRL_PRIORITY_SEARCH, mmi_watch_search_audio_ctrl_callback))
- //{
- // Hal_NFFS_File_Play_Repeat(AUDIO_WATCH_SEARCH, HAL_AUDIO_SPK_LEVEL_MAX);
- //}
+
}
else if(AUDIO_CTRL_PRIORITY_SEARCH > priority)
{
}
#ifdef __MMI_WECHAT_SUPPORT__
- if(true == wechat_msg_voice_is_recording()
- || true == wechat_msg_item_is_sending()
- || true == wechat_msg_voice_is_playing()
- )
+ if(true == wechat_screen_is_prohibit_interrupted())
{
return;
}