summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghoon Park <jh9216.park@samsung.com>2019-01-02 01:27:23 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2019-01-02 01:27:23 +0000
commit4929b174df26bfc49ca9e32e2b8bd976bf0a82f0 (patch)
tree0344e29525723b6ec21af2e8f1acb1bc061774cd
parent519fe5a0c02264e4b5f7f1e3b082b0ee0f47a176 (diff)
parent29cda67cb2383002fbc1932f382bbd559b384947 (diff)
downloadapp-core-4929b174df26bfc49ca9e32e2b8bd976bf0a82f0.tar.gz
app-core-4929b174df26bfc49ca9e32e2b8bd976bf0a82f0.tar.bz2
app-core-4929b174df26bfc49ca9e32e2b8bd976bf0a82f0.zip
Merge "Revert "Revert "Postpone vc elm initialization""" into tizen
-rw-r--r--src/efl_base/appcore_efl_base.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/efl_base/appcore_efl_base.c b/src/efl_base/appcore_efl_base.c
index 676cb71..0e8dde5 100644
--- a/src/efl_base/appcore_efl_base.c
+++ b/src/efl_base/appcore_efl_base.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <dlfcn.h>
+#include <glib.h>
#include <Elementary.h>
#include <vconf.h>
@@ -141,6 +142,14 @@ 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;
@@ -164,15 +173,13 @@ static void __efl_app_init(int argc, char **argv, void *data)
}
}
- /* VC voice touch setting */
- if (!getenv("VC_ELM_INIT"))
- __vc_elm_init();
+ /* Postpone initialization to improve app launching performance */
+ g_idle_add(__init_vc_elm, NULL);
}
static void __efl_app_finish(void)
{
__vc_elm_finish();
- unsetenv("VC_ELM_INIT");
elm_shutdown();