If the aul_svc_create_result_bundle API returns AUL_SVC_RET_ECANCELED,
the API returns APP_CONTROL_ERROR_NONE value.
This patch is for backward compatibility.
Change-Id: I304c73b7a00d886029148d42d10a4c8419bbe752
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (result == APP_CONTROL_RESULT_APP_STARTED)
return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER, __FUNCTION__, "APP_CONTROL_RESULT_APP_STARTED is not allowed to use");
- if (aul_svc_create_result_bundle(request->data, &reply_data) != 0)
+ ret = aul_svc_create_result_bundle(request->data, &reply_data);
+ if (ret != 0) {
+ if (ret == AUL_SVC_RET_ECANCELED)
+ return APP_CONTROL_ERROR_NONE;
+
return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER, __FUNCTION__, "failed to create a result bundle");
+ }
app_control_foreach_extra_data(reply, app_control_copy_reply_data_cb, reply_data);