- If launch mode in the caller app control is not set,
- app_control_get_launch_mode() returns TIZEN_ERROR_INVALID_PARAMETER error.
Change-Id: I51d65e5047325624e9f8b01a338ea967176ea353
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
launch_mode = appsvc_get_launch_mode(app_control->data);
if (launch_mode == NULL) {
*mode = APP_CONTROL_LAUNCH_MODE_SINGLE;
- return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER,
- __FUNCTION__, "fail to get launch_mode");
} else {
if (!strcmp(launch_mode, LAUNCH_MODE_SINGLE)) {
*mode = APP_CONTROL_LAUNCH_MODE_SINGLE;
/**
* @brief Gets the launch mode of the application.
*
+ * @remarks Since Tizen 3.0, if launch mode not set in the caller app control,
+ * the function returns #APP_CONTROL_LAUNCH_MODE_SINGLE launch mode.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
* @param[in] app_control The app_control handle
* @param[out] launch_mode The launch mode of app