From: Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics Date: Thu, 20 Feb 2020 09:59:28 +0000 (+0100) Subject: [Application] Fixed behaviour of launch() function X-Git-Tag: accepted/tizen/5.5/unified/20200221.094157^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F225528%2F2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Application] Fixed behaviour of launch() function [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 --- diff --git a/src/application/application_manager.cc b/src/application/application_manager.cc index 7b77545..ad21859 100644 --- a/src/application/application_manager.cc +++ b/src/application/application_manager.cc @@ -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_send_launch_request_async( - app_control_ptr.get(), result_callback, nullptr, launch_user_data))); + TranslateLaunchError(static_cast(app_control_send_resume_request( + app_control_ptr.get(), result_callback, launch_user_data))); if (launch_result.IsError()) { delete launch_user_data;