mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 23:30:44 +00:00
add user
Signed-off-by: unknown <sijunjie@huawei.com>
This commit is contained in:
parent
51df7ddb89
commit
17bb394165
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user