[Application] Fixed behaviour of launch() function 28/225528/2 accepted/tizen/5.5/unified/20200221.094157 submit/tizen_5.5/20200220.115948
authorPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Thu, 20 Feb 2020 09:59:28 +0000 (10:59 +0100)
committerPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Thu, 20 Feb 2020 11:54:02 +0000 (12:54 +0100)
[Bug] Behaviour of launch() function changed.
For already launched application, now force launch is processed.
Before changing internal implementation, application was resumed
in this case.

With changing app_control_send_launch_request() call to
app_control_send_resume_request() this problem was fixed.

[Verification] binary tizen-5.5-unified_20200219.2 - TW3
PLM P191224-08332 - issue resolved.
Application TCT passrate 100%

Change-Id: I0ab3672e3a64cfbd3bb18d54e71acf562cfa3ff3

src/application/application_manager.cc

index 7b77545..ad21859 100644 (file)
@@ -648,8 +648,8 @@ void ApplicationManager::Launch(const picojson::value& args) {
    * If problems, such as failed application start occur, multiple attempts may solve the problem.
    */
   auto launch_result =
-      TranslateLaunchError(static_cast<app_control_error_e>(app_control_send_launch_request_async(
-          app_control_ptr.get(), result_callback, nullptr, launch_user_data)));
+      TranslateLaunchError(static_cast<app_control_error_e>(app_control_send_resume_request(
+          app_control_ptr.get(), result_callback, launch_user_data)));
 
   if (launch_result.IsError()) {
     delete launch_user_data;