demo: use elm_entry API for prediction hint 66/179866/7
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 23 May 2018 05:41:04 +0000 (14:41 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 30 Jul 2018 22:45:08 +0000 (22:45 +0000)
Change-Id: Ie2a4960c9ec244671d05e8aeb63af82e7674a8d9
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/demos/isf_prediction_hint_efl.cpp

index b819122..507dcb6 100644 (file)
@@ -62,16 +62,12 @@ static Evas_Object *_create_ef_layout (Evas_Object *parent, const char *label, c
         elm_entry_input_hint_set (en, input_hints);
     }
 
-    Ecore_IMF_Context *ic = NULL;
-    ic = (Ecore_IMF_Context *)elm_entry_imf_context_get (en);
-    if (ic) {
-        if (prediction_hint)
-            ecore_imf_context_prediction_hint_set (ic, prediction_hint);
-
-        ecore_imf_context_prediction_hint_hash_set (ic, "appid", "isf-demo-efl");
-        if (res_id)
-            ecore_imf_context_prediction_hint_hash_set (ic, "res_id", res_id);
-    }
+    if (prediction_hint)
+        elm_entry_prediction_hint_set (en, prediction_hint);
+
+    elm_entry_prediction_hint_hash_set (en, "appid", "isf-demo-efl");
+    if (res_id)
+        elm_entry_prediction_hint_hash_set (en, "res_id", res_id);
 
     return ef;
 }