#endif
-VoiceData *my_voicedata;
+VoiceData *my_voicedata = NULL;
static Evas_Object *win_main = NULL;
void voice_result_string_flush()
{
- LOGD("***** result_text : %s *******", my_voicedata->partial_result);
- if (my_voicedata->partial_result) {
+ if (my_voicedata && my_voicedata->partial_result) {
+ LOGD("***** result_text : %s *******", my_voicedata->partial_result);
char *retStr = (char *)calloc(strlen(my_voicedata->partial_result) + 1, sizeof(char));
strncpy(retStr, my_voicedata->partial_result, strlen(my_voicedata->partial_result));
ise_send_string(retStr);
#define item_append(obj, style, index, cb, udata) \
elm_genlist_item_append(obj, &(style), (void *)index, NULL, ELM_GENLIST_ITEM_NONE, cb, udata)
+sclboolean g_setting_window_open_status = FALSE;
+
extern stt_h g_stt;
static Evas_Object *radio_gp = NULL;
Evas_Object *g_setting_naviframe = NULL;
void create_setting_window()
{
+ g_setting_window_open_status = TRUE;
ise_hide_stt_mode();
Evas_Object *window = NULL;
#define SOFT_CANDIDATE_DELETE_TIME (1.0/100)
static Ecore_Timer *g_softcandidate_hide_timer = NULL;
+extern sclboolean g_setting_window_open_status;
+
KEYBOARD_STATE g_keyboard_state = {
0,
0,
}
/* Reset input mode if the input context value has changed */
- if (ic != g_keyboard_state.ic) {
+ if (ic != g_keyboard_state.ic && !g_setting_window_open_status) {
reset_inputmode = TRUE;
}
+
g_keyboard_state.ic = ic;
/* Reset input mode if the current language is not the selected language */
const sclchar * cur_lang = _language_manager.get_current_language();
}
/* No matter what, just reset the inputmode if it needs to */
- if (g_keyboard_state.need_reset) {
+ if (g_keyboard_state.need_reset && !g_setting_window_open_status) {
reset_inputmode = TRUE;
}
g_keyboard_state.need_reset = FALSE;
hide_indicator_window();
}
#endif
+
+ if (g_setting_window_open_status) {
+ ise_show_stt_mode(NATIVE_WINDOW_CAST(g_core.get_main_window()));
+ }
+ g_setting_window_open_status = FALSE;
}
/**