Set background option to FALSE if not in PRELAUNCH mode 31/221531/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 3 Jan 2020 10:00:50 +0000 (19:00 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 3 Jan 2020 10:01:45 +0000 (19:01 +0900)
Change-Id: Ibe2a5fbaeefde1a24d67ea3a17c44f59706d0971

src/multi_assistant_service.c

index 5043b09..d07cf18 100644 (file)
@@ -1057,7 +1057,8 @@ int mas_launch_client_by_appid(const char *appid, CLIENT_LAUNCH_MODE launch_mode
                return -1;
        }
 
-       int result = aul_svc_set_background_launch(b, TRUE);
+       int result = aul_svc_set_background_launch(b,
+               (CLIENT_LAUNCH_MODE_PRELAUNCH == launch_mode ? TRUE : FALSE));
        if (result < AUL_R_OK) {
                MAS_LOGE("ERROR : aul_svc_set_background_launch failed. app_id [%s] bundle[%p] result[%d : %s]",
                        appid, b, result, get_error_message(result));