static const char *g_current_lang = "en_US";
#define MULTI_ASSISTANT_SETTINGS_ACTIVATED "db/multi-assistant/activated"
+#define WAKEUP_SETTINGS_KEY_DEFAULT_ASSISTANT_APPID "db/multi-assistant/default_assistant_appid"
+#define WAKEUP_SETTINGS_KEY_PRELAUNCH_MODE "db/multi-assistant/prelaunch_mode"
#define MAX_MACLIENT_INFO_NUM 16
#define MAX_WAKEUP_WORDS_NUM 255
vconf_notify_key_changed(MULTI_ASSISTANT_SETTINGS_ACTIVATED, mas_active_state_changed_cb, NULL);
}
+ /* CHECK NEEDED : should the code segment below and activation logic above be moved to wakeup manger? */
+ int prelaunch_mode;
+ int res = vconf_get_bool(WAKEUP_SETTINGS_KEY_PRELAUNCH_MODE, &prelaunch_mode);
+ if (0 == res && 0 != prelaunch_mode) {
+ char *vconf_str;
+ vconf_str = vconf_get_str(WAKEUP_SETTINGS_KEY_DEFAULT_ASSISTANT_APPID);
+ if (vconf_str) {
+ MAS_LOGD("prelaunching default_assistant_appid : %s", vconf_str);
+ mas_launch_client_by_appid(vconf_str, CLIENT_LAUNCH_MODE_PRELAUNCH);
+ free(vconf_str);
+ vconf_str = NULL;
+ }
+ }
+
return 0;
}