Return "single" launch mode with default 60/64960/3 accepted/tizen/common/20160412.130506 accepted/tizen/ivi/20160412.005708 accepted/tizen/mobile/20160412.005623 accepted/tizen/tv/20160412.005536 accepted/tizen/wearable/20160412.005541 submit/tizen/20160411.103842
authorMyungki Lee <mk5004.lee@samsung.com>
Fri, 8 Apr 2016 09:08:44 +0000 (18:08 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Fri, 8 Apr 2016 09:09:07 +0000 (18:09 +0900)
- 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>
app_control/app_control.c
include/app_control.h

index 0d6b5be..f7b8ec6 100644 (file)
@@ -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;
index 06e1706..d0fc5f6 100644 (file)
@@ -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