Fix issue autofill candidate shows in any input field with no autofill hint 26/164626/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 20 Dec 2017 05:20:02 +0000 (14:20 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 20 Dec 2017 05:20:18 +0000 (14:20 +0900)
Change-Id: Id3f826b98020e2f566885c1e92c41ea22d6be2dc
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index 53678e9..4cd1d0c 100644 (file)
@@ -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: