mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-27 01:11:15 +00:00
commit
a48a534ccb
@ -41,7 +41,7 @@ enum class GetExtensionAbilityInfoFlag {
|
||||
GET_EXTENSION_ABILITY_INFO_WITH_METADATA = 0x00000004,
|
||||
GET_EXTENSION_ABILITY_INFO_WITH_SKILL_URI = 0x00000008,
|
||||
GET_EXTENSION_ABILITY_INFO_WITH_SKILL = 0x00000010,
|
||||
// using this tag will only return one, only for c++
|
||||
// using this tag will only return the first system app, only for c++
|
||||
GET_EXTENSION_ABILITY_INFO_BY_TYPE_NAME = 0x00000020,
|
||||
};
|
||||
|
||||
|
@ -5688,7 +5688,7 @@ void BundleDataMgr::GetExtensionAbilityInfoByTypeName(uint32_t flags, int32_t us
|
||||
if ((flags &
|
||||
static_cast<uint32_t>(GetExtensionAbilityInfoFlag::GET_EXTENSION_ABILITY_INFO_BY_TYPE_NAME)) ==
|
||||
static_cast<uint32_t>(GetExtensionAbilityInfoFlag::GET_EXTENSION_ABILITY_INFO_BY_TYPE_NAME)) {
|
||||
if (item.second.GetInnerExtensionInfos().empty()) {
|
||||
if (item.second.GetInnerExtensionInfos().empty() || !item.second.IsSystemApp()) {
|
||||
continue;
|
||||
}
|
||||
bool ret = GetInnerBundleInfoWithFlags(item.first, flags, userId);
|
||||
|
@ -3706,6 +3706,7 @@ ErrCode BundleMgrHostImpl::QueryExtensionAbilityInfosOnlyWithTypeName(const std:
|
||||
if ((flags &
|
||||
static_cast<uint32_t>(GetExtensionAbilityInfoFlag::GET_EXTENSION_ABILITY_INFO_BY_TYPE_NAME)) ==
|
||||
static_cast<uint32_t>(GetExtensionAbilityInfoFlag::GET_EXTENSION_ABILITY_INFO_BY_TYPE_NAME)) {
|
||||
extensionInfos = infos;
|
||||
return ret;
|
||||
}
|
||||
for_each(infos.begin(), infos.end(), [&typeName, &extensionInfos](const auto &info)->decltype(auto) {
|
||||
|
Loading…
Reference in New Issue
Block a user