Support get caller info when ability has been started.

Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com>
Change-Id: I08160b9141315a523be73969d1b72f7d3adb0427
This commit is contained in:
zhangyafei-echo 2024-03-09 19:02:56 +08:00
parent fa2dc3e72a
commit f82445c805

View File

@ -9332,6 +9332,7 @@ int32_t AbilityManagerService::StartAbilityByCallWithInsightIntent(const Want &w
auto missionListMgr = GetListManagerByUserId(oriValidUserId);
if (IsAbilityStarted(abilityRequest, targetRecord, oriValidUserId)) {
HILOG_INFO("ability has already started");
UpdateCallerInfo(abilityRequest.want, callerToken);
result = OnExecuteIntent(abilityRequest, targetRecord);
} else {
result = StartAbilityByCall(want, connect, callerToken);