Revert "Fix delay issue occured when switching keyboard"
[platform/core/uifw/isf.git] / ism / extras / efl_panel / isf_panel_efl.cpp
index e414606..2f6c764 100644 (file)
@@ -6173,7 +6173,38 @@ static void launch_helper (const char* exec, const char *name, const char *appid
 
 static void app_control_launch (const char *app_id)
 {
-    aul_launch_app_async(app_id, NULL);
+    app_control_h app_control;
+    int ret;
+
+    ret = app_control_create (&app_control);
+    if (ret != APP_CONTROL_ERROR_NONE) {
+        LOGW ("app_control_create returned %08x\n", ret);
+        return;
+    }
+
+    ret = app_control_set_operation (app_control, APP_CONTROL_OPERATION_DEFAULT);
+    if (ret != APP_CONTROL_ERROR_NONE) {
+        LOGW ("app_control_set_operation returned %08x\n", ret);
+        app_control_destroy (app_control);
+        return;
+    }
+
+    ret = app_control_set_app_id (app_control, app_id);
+    if (ret != APP_CONTROL_ERROR_NONE) {
+        LOGW ("app_control_set_app_id returned %08x\n", ret);
+        app_control_destroy (app_control);
+        return;
+    }
+
+    ret = app_control_send_launch_request (app_control, NULL, NULL);
+    if (ret != APP_CONTROL_ERROR_NONE) {
+        LOGW ("app_control_send_launch_request returned %08x, app_id=%s\n", ret, app_id);
+        app_control_destroy (app_control);
+        return;
+    }
+
+    app_control_destroy (app_control);
+    LOGD ("Launch %s\n", app_id);
 }
 
 static void slot_run_helper (const String &uuid, const String &config, const String &display)