static vector<string> g_softcandidate_string;
static bool g_softcandidate_show = false;
static bool g_input_panel_show = false;
-static bool g_smartreply_reply_exist = false;
static unsigned int g_smartreply_size = 0;
static bool g_caps_mode_pending = false;
static bool g_floating_mode = false;
}
}
g_ic_smartreply = g_ic;
- g_smartreply_reply_exist = true;
ise_app_candidate_show();
g_softcandidate_string = g_smartreply_strings;
LOGD("Enter\n");
ise_focus_in(context_id);
Candidate *candidate = get_candidate();
- if (!g_smartreply_reply_exist && g_softcandidate_show) {
+ if (input_smartreply_get_reply_num() == 0 && g_softcandidate_show) {
if (candidate) {
ise_app_candidate_hide();
candidate->hide();
#ifdef HAVE_CBHM
g_set_mime_type = FALSE;
#endif
- g_smartreply_reply_exist = false;
g_smartreply_size = 0;
input_smartreply_deinit();
g_ic_smartreply = -1;
}
}
- if (g_smartreply_reply_exist) {
+ if (input_smartreply_get_reply_num() > 0) {
if (candidate_strings[0] == "#" && candidate_strings[1] == "$") {
char *text = NULL;
int cursor;
if (input_smartreply_is_enabled()) {
g_smartreply_size = 0;
- g_smartreply_reply_exist = false;
-
input_smartreply_get_reply_async();
}
}