From f7983c4ee2b968947569c840ddc6c250d949a424 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Fri, 12 May 2023 14:45:47 +0800 Subject: [PATCH] multi call fix Signed-off-by: xinking129 --- services/abilitymgr/src/ability_manager_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/abilitymgr/src/ability_manager_service.cpp b/services/abilitymgr/src/ability_manager_service.cpp index 327550be3d6..2b04d48e3ae 100644 --- a/services/abilitymgr/src/ability_manager_service.cpp +++ b/services/abilitymgr/src/ability_manager_service.cpp @@ -6223,7 +6223,8 @@ int AbilityManagerService::CheckStartByCallPermission(const AbilityRequest &abil { HILOG_INFO("%{public}s begin", __func__); // check whether the target ability is singleton mode and page type. - if (abilityRequest.abilityInfo.type == AppExecFwk::AbilityType::PAGE) { + if (abilityRequest.abilityInfo.type == AppExecFwk::AbilityType::PAGE && + abilityRequest.abilityInfo.launchMode != AppExecFwk::LaunchMode::SPECIFIED) { HILOG_DEBUG("Called ability is common ability."); } else { HILOG_ERROR("Called ability is not common ability."); -- Gitee