!987 协同窗口打开应用接续失败

Merge pull request !987 from liuhongjie/master
This commit is contained in:
openharmony_ci 2024-07-18 10:57:40 +00:00 committed by Gitee
commit 612ddf541f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -194,7 +194,14 @@ int32_t DMSContinueSendMgr::GetMissionIdByBundleName(const std::string& bundleNa
HILOGI("get missionId end, missionId: %{public}d", missionId);
return ERR_OK;
}
HILOGE("get bundleName failed from screenOffHandler_");
HILOGW("get bundleName failed from screenOffHandler_");
for (auto iter = aliveMission_.begin(); iter != aliveMission_.end(); iter++) {
if (iter->second.bundleName == bundleName) {
missionId = iter->first;
HILOGI("get missionId from aliveMission_, missionId: %{public}d", missionId);
return ERR_OK;
}
}
return INVALID_PARAMETERS_ERR;
}