From 41f3c3c2fdf72399f1cc66a0970d455a3a82290c Mon Sep 17 00:00:00 2001
From: "Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics"
Date: Thu, 20 Feb 2020 10:59:28 +0100
Subject: [PATCH] [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
---
src/application/application_manager.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
--
2.7.4