Fix a bug about app group launch 85/262585/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 13 Aug 2021 10:02:57 +0000 (19:02 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 13 Aug 2021 10:02:57 +0000 (19:02 +0900)
If the instance ID already exists, AUL doesn't not set a new instance ID
to the bundle object.

Change-Id: I2198fa5e31493d59e7347f05f8288643f27a5ce4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_svc.cc

index 153ee6e..71ec391 100644 (file)
@@ -201,7 +201,7 @@ void SetLaunchData(bundle* request, const std::string& appid) {
   const char* launch_mode = aul_svc_get_launch_mode(request);
   if (launch_mode && !strcmp(launch_mode, "group")) {
     int ret = bundle_get_type(request, AUL_K_INSTANCE_ID);
-    if (ret != BUNDLE_TYPE_NONE)
+    if (ret == BUNDLE_TYPE_NONE)
       aul_set_instance_info(appid.c_str(), request);
   }
 }