From a39a46360dd9c89de5a9d5261e621ad5be78e270 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Fri, 8 Apr 2016 18:08:44 +0900 Subject: [PATCH] Return "single" launch mode with default - 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 --- app_control/app_control.c | 2 -- include/app_control.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app_control/app_control.c b/app_control/app_control.c index 0d6b5be..f7b8ec6 100644 --- a/app_control/app_control.c +++ b/app_control/app_control.c @@ -573,8 +573,6 @@ int app_control_get_launch_mode(app_control_h app_control, 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; diff --git a/include/app_control.h b/include/app_control.h index 06e1706..d0fc5f6 100644 --- a/include/app_control.h +++ b/include/app_control.h @@ -1050,6 +1050,8 @@ int app_control_set_launch_mode(app_control_h app_control, /** * @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 -- 2.7.4