Add prelaunch functionality for preprocessing assistant 72/215972/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 15 Oct 2019 12:08:42 +0000 (21:08 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 18 Oct 2019 04:34:55 +0000 (13:34 +0900)
Change-Id: Idf167b0293ea1783c22b9ab151fbce1d52769a63

src/multi_assistant_service.c

index 2c5d692..a6a8c0a 100644 (file)
@@ -764,6 +764,16 @@ static int init_wakeup(void)
                }
        }
 
+       /* For the case of preprocessing assistant, it always have to be launched beforehand */
+       char *vconf_str;
+       vconf_str = vconf_get_str(WAKEUP_SETTINGS_KEY_PREPROCESSING_ASSISTANT_APPID);
+       if (vconf_str) {
+               MAS_LOGD("prelaunching preprocessing_assistant_appid : %s", vconf_str);
+               mas_launch_client_by_appid(vconf_str, CLIENT_LAUNCH_MODE_PRELAUNCH);
+               free(vconf_str);
+               vconf_str = NULL;
+       }
+
        return 0;
 }