From cf9b8848e97a430e789b497c8ab86a6f37fb07f0 Mon Sep 17 00:00:00 2001 From: wanghang Date: Tue, 25 Apr 2023 12:13:41 +0000 Subject: [PATCH] IssueNo:#I6YV9G Description:opt getLauncherAbilityInfo Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wanghang Change-Id: I9826778aa46ba70c05bc80e38dc8482234af93e1 --- services/bundlemgr/src/bundle_data_mgr.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index ec40aa32c9..851b7ad7c1 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; } -- Gitee