if (current_emoticon_group < EMOTICON_GROUP_3)
group_id = (emoticon_group_t)(current_emoticon_group + 1);
- const int BUF_LEN = 16;
- char buf[BUF_LEN] = {0};
- snprintf(buf, BUF_LEN, "%d/3", group_id);
- g_ui->set_private_key("EMOTICON_GROUP_ID", buf, NULL, NULL, 0, const_cast<sclchar*>("EMOTICON_GROUP_NEXT"), TRUE);
+ ise_set_emoticon_label(group_id);
#else
emoticon_group_t group_id = ise_get_emoticon_group_id(event_desc.key_value);
#endif
ise_init_emoticon_list();
#ifdef _WEARABLE
current_emoticon_group = EMOTICON_GROUP_1;
+ ise_set_emoticon_label(1);
#else
if (emoticon_list_recent.size() == 0)
current_emoticon_group = EMOTICON_GROUP_1;
}
#ifdef _WEARABLE
-void ise_check_wearable_candidate() {
+void ise_check_wearable_candidate()
+{
if (!g_config_values.prediction_on) {
ise_app_candidate_hide();
} else if (g_keyboard_state.layout == ISE_LAYOUT_STYLE_PHONENUMBER ||
ise_app_candidate_show();
}
}
+
+void ise_set_emoticon_label(int group_id)
+{
+ const int BUF_LEN = 16;
+ char buf[BUF_LEN] = {0};
+ snprintf(buf, BUF_LEN, "%d/3", group_id);
+ g_ui->set_private_key("EMOTICON_GROUP_ID", buf, NULL, NULL, 0, const_cast<sclchar*>("EMOTICON_GROUP_NEXT"), TRUE);
+}
#endif
// when it is the time to auto_cap, the