From 2b5db9d5f72a7d80bc89807a7057c80996f60ab1 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 29 Nov 2016 15:07:39 +0900 Subject: [PATCH] Skip to hide candiate in case of no candidate Change-Id: Ia28b662a6837b9b7804b96b24a2f15867d10f426 --- src/ise.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ise.cpp b/src/ise.cpp index bb48da5..f4bb828 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -611,6 +611,12 @@ void CCoreEventCallback::on_candidate_show(sclint ic, const sclchar *ic_uuid) void CCoreEventCallback::on_candidate_hide(sclint ic, const sclchar *ic_uuid) { LOGD("Enter\n"); + + if (!g_candidate || !g_softcandidate_show) { + LOGD("No candidate\n"); + return; + } + add_softcandidate_hide_timer(); if (g_ui) { g_ui->set_custom_starting_coordinates(0, 0); -- 2.7.4