Signed-off-by: unknown <sijunjie@huawei.com>
This commit is contained in:
unknown 2022-03-11 13:24:03 +08:00
parent 51df7ddb89
commit 17bb394165

View File

@ -2580,7 +2580,7 @@ int AbilityManagerService::GenerateAbilityRequest(
HILOG_DEBUG("%{public}s, QueryAbilityInfo, userId is %{public}d", __func__, userId);
IN_PROCESS_CALL_WITHOUT_RET(bms->QueryAbilityInfo(want, abilityInfoFlag, userId, request.abilityInfo));
if (request.abilityInfo.name.empty() || request.abilityInfo.bundleName.empty()) {
HILOG_WARN("%{public}s, QueryAbilityInfo again, userId is %{public}d", __func__, userId);
HILOG_WARN("%{public}s, QueryAbilityInfo again, userId is 0", __func__);
IN_PROCESS_CALL_WITHOUT_RET(bms->QueryAbilityInfo(want, abilityInfoFlag, U0_USER_ID, request.abilityInfo));
}
if (request.abilityInfo.name.empty() || request.abilityInfo.bundleName.empty()) {
@ -2588,7 +2588,7 @@ int AbilityManagerService::GenerateAbilityRequest(
std::vector<AppExecFwk::ExtensionAbilityInfo> extensionInfos;
IN_PROCESS_CALL_WITHOUT_RET(bms->QueryExtensionAbilityInfos(want, abilityInfoFlag, userId, extensionInfos));
if (extensionInfos.size() <= 0) {
HILOG_WARN("%{public}s, QueryExtensionAbilityInfos again, userId is %{public}d", __func__, userId);
HILOG_WARN("%{public}s, QueryExtensionAbilityInfos again, userId is 0", __func__);
IN_PROCESS_CALL_WITHOUT_RET(bms->QueryExtensionAbilityInfos(want, abilityInfoFlag,
U0_USER_ID, extensionInfos));
}