From 4749af20f9fba036086a05abb57e118659abcc48 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 20 Dec 2017 14:20:02 +0900 Subject: [PATCH] Fix issue autofill candidate shows in any input field with no autofill hint Change-Id: Id3f826b98020e2f566885c1e92c41ea22d6be2dc Signed-off-by: Jihoon Kim --- src/ise.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ise.cpp b/src/ise.cpp index 53678e9..4cd1d0c 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -2311,10 +2311,13 @@ static void show_autofill_data(Ecore_IMF_Input_Hints input_hints) g_autofill_string = string(""); string alias; - alias = get_autofill_alias(); - LOGD("input_hints : %x, input_hints & mask : %x\n", input_hints, input_hints & ECORE_IMF_INPUT_HINT_AUTOFILL_MASK); + if (g_autofill_hint == 0) + return; + + alias = get_autofill_alias(); + switch (g_autofill_hint) { case ECORE_IMF_INPUT_HINT_AUTOFILL_NAME: -- 2.7.4