read_ise_config_values();
_language_manager.set_enabled_languages(g_config_values.enabled_languages);
+ const sclchar *cur_lang = _language_manager.get_current_language();
+
#ifdef _WEARABLE
- if (!strcmp(_language_manager.get_current_language(), "English") ){
+ if (cur_lang && !strcmp(cur_lang, "English")) {
if (!g_config_values.prediction_on ||
(g_keyboard_state.layout == ISE_LAYOUT_STYLE_PHONENUMBER ||
g_keyboard_state.layout == ISE_LAYOUT_STYLE_VOICE ||
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();
if (cur_lang) {
if (g_config_values.selected_language.compare(cur_lang) != 0) {
reset_inputmode = TRUE;
static void ime_app_candidate_show_cb(int context_id, void *user_data)
{
#ifdef _WEARABLE
- if (!strcmp(_language_manager.get_current_language(), "English")){
+ const sclchar *cur_lang = _language_manager.get_current_language();
+ if (cur_lang && !strcmp(cur_lang, "English")) {
if (!g_config_values.prediction_on ||
(g_keyboard_state.layout == ISE_LAYOUT_STYLE_PHONENUMBER ||
g_keyboard_state.layout == ISE_LAYOUT_STYLE_VOICE ||
static void ime_app_candidate_hide_cb(int context_id, void *user_data)
{
#ifdef _WEARABLE
- if (!strcmp(_language_manager.get_current_language(), "English")){
+ const sclchar *cur_lang = _language_manager.get_current_language();
+ if (cur_lang && !strcmp(cur_lang, "English")) {
if (!g_config_values.prediction_on ||
(g_keyboard_state.layout == ISE_LAYOUT_STYLE_PHONENUMBER ||
g_keyboard_state.layout == ISE_LAYOUT_STYLE_VOICE ||