diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index ec40aa32c9ea6d4191e039adb45af11f0bf7b362..851b7ad7c184e14c83aa6f07c0ea9a61dadec9fd 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -1271,16 +1271,12 @@ ErrCode BundleDataMgr::GetLauncherAbilityByBundleName(const Want &want, std::vec APP_LOGE("no bundleName %{public}s found", bundleName.c_str()); return ERR_BUNDLE_MANAGER_BUNDLE_NOT_EXIST; } - BundleFlag flags = BundleFlag::GET_BUNDLE_DEFAULT; - BundleInfo bundleInfo; const InnerBundleInfo &info = item->second; - int32_t responseUserId = info.GetResponseUserId(requestUserId); - info.GetBundleInfo(flags, bundleInfo, responseUserId); - if (bundleInfo.applicationInfo.hideDesktopIcon) { + if (info.GetBaseApplicationInfo().hideDesktopIcon) { APP_LOGD("Bundle(%{public}s) hide desktop icon", bundleName.c_str()); return ERR_OK; } - if (bundleInfo.entryInstallationFree) { + if (info.GetBaseBundleInfo().entryInstallationFree) { APP_LOGD("Bundle(%{public}s) is atomic service, hide desktop icon", bundleName.c_str()); return ERR_OK; }