From: Junghoon Park Date: Mon, 31 Dec 2018 00:50:13 +0000 (+0000) Subject: Revert "Postpone vc elm initialization" X-Git-Tag: submit/tizen/20181231.011701~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97917b7118e5fc42df3d9689e40c03760c6e6c7c;p=platform%2Fcore%2Fappfw%2Fapp-core.git Revert "Postpone vc elm initialization" This reverts commit 2fc6321e32154da40ff3969a3443e0d444e7778d. Change-Id: Id62ea158061ebc4e18a82778c856e7c2bb91f1fb --- diff --git a/src/efl_base/appcore_efl_base.c b/src/efl_base/appcore_efl_base.c index 0e8dde5..676cb71 100644 --- a/src/efl_base/appcore_efl_base.c +++ b/src/efl_base/appcore_efl_base.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include @@ -142,14 +141,6 @@ static void __vc_elm_finish(void) } } -static gboolean __init_vc_elm(gpointer data) -{ - /* VC voice touch setting */ - __vc_elm_init(); - - return G_SOURCE_REMOVE; -} - static void __efl_app_init(int argc, char **argv, void *data) { int hint; @@ -173,13 +164,15 @@ static void __efl_app_init(int argc, char **argv, void *data) } } - /* Postpone initialization to improve app launching performance */ - g_idle_add(__init_vc_elm, NULL); + /* VC voice touch setting */ + if (!getenv("VC_ELM_INIT")) + __vc_elm_init(); } static void __efl_app_finish(void) { __vc_elm_finish(); + unsetenv("VC_ELM_INIT"); elm_shutdown();