When the target application ID is changed, amd should check whether
the target application is starting or not.
Change-Id: I3197e0fa8718ef9d99f6822097a117a7ae1426b5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (b->GetType(AUL_K_APPID) != BUNDLE_TYPE_NONE)
appid_str = b->GetString(AUL_K_APPID);
+ if (appid_str != appid) {
+ _E("Target appid(%s) is changed to %s", appid, appid_str.c_str());
+ if (amd::RequestManager::GetInst().CheckStatus(req) ==
+ amd::Request::Status::Pending) {
+ _W("Request has been pending. appid(%s)", appid_str.c_str());
+ return 0;
+ }
+ }
+
auto context = std::make_shared<amd::LaunchContext>(req, appid_str,
new_instance);
int ret = amd::LaunchManager::GetInst().StartApp(context);