!5606 支持桌面在最近任务列表里显示

Merge pull request !5606 from HuangXW/launcherMission
This commit is contained in:
openharmony_ci 2023-06-02 03:08:10 +00:00 committed by Gitee
commit 07830cac21
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -488,7 +488,7 @@ bool MissionListManager::CreateOrReusedMissionInfo(const AbilityRequest &ability
std::string missionName = GetMissionName(abilityRequest);
auto mgr = DelayedSingleton<MissionInfoMgr>::GetInstance();
if (needFind && !abilityRequest.abilityInfo.applicationInfo.isLauncherApp && mgr &&
if (needFind && mgr &&
mgr->FindReusedMissionInfo(missionName, abilityRequest.specifiedFlag, isFindRecentStandard, info)
&& info.missionInfo.id > 0) {
reUsedMissionInfo = true;
@ -549,7 +549,7 @@ void MissionListManager::GetTargetMissionAndAbility(const AbilityRequest &abilit
info.missionInfo.label = targetRecord->GetLabel();
}
if (abilityRequest.abilityInfo.applicationInfo.isLauncherApp || abilityRequest.abilityInfo.excludeFromMissions) {
if (abilityRequest.abilityInfo.excludeFromMissions) {
return;
}