summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2016-04-08 18:08:44 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2016-04-08 18:09:07 +0900
commita39a46360dd9c89de5a9d5261e621ad5be78e270 (patch)
tree81ef31ac66e17892d33003b7ae22ef9484a4f6d9
parent2731ab5ff4fcc5a296e808dddbf3c938e31476f5 (diff)
downloadapplication-a39a46360dd9c89de5a9d5261e621ad5be78e270.tar.gz
application-a39a46360dd9c89de5a9d5261e621ad5be78e270.tar.bz2
application-a39a46360dd9c89de5a9d5261e621ad5be78e270.zip
- 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>
-rw-r--r--app_control/app_control.c2
-rw-r--r--include/app_control.h2
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