yituxiufu

Signed-off-by: zhuhan <zhuhan10@huawei.com>
Change-Id: I6c8e80fe02ac139099c6b3011f9a22195093f6f9
This commit is contained in:
zhuhan 2024-11-19 10:25:52 +08:00
parent 45f8972102
commit 95dac18d15
2 changed files with 5 additions and 2 deletions

View File

@ -10701,6 +10701,7 @@ int32_t AbilityManagerService::OnExecuteIntent(AbilityRequest &abilityRequest,
{
TAG_LOGI(AAFwkTag::ABILITYMGR, "onExecuteIntent");
if (targetRecord == nullptr || targetRecord->GetScheduler() == nullptr) {
TAG_LOGE(AAFwkTag::ABILITYMGR, "null scheduler");
return ERR_INVALID_VALUE;
}
targetRecord->GetScheduler()->OnExecuteIntent(abilityRequest.want);

View File

@ -911,11 +911,13 @@ bool UIAbilityLifecycleManager::IsAbilityStarted(AbilityRequest &abilityRequest,
return false;
}
targetRecord = sessionAbilityMap_.at(persistentId);
if (targetRecord) {
if (targetRecord && targetRecord->GetScheduler() != nullptr) {
targetRecord->AddCallerRecord(abilityRequest.callerToken, abilityRequest.requestCode, abilityRequest.want);
targetRecord->SetLaunchReason(LaunchReason::LAUNCHREASON_CALL);
return true;
}
return true;
return false;
}
int UIAbilityLifecycleManager::CallAbilityLocked(const AbilityRequest &abilityRequest)