From 54d6ad4b21e2ec3327602482b75fef324938c192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=AC=A3=E5=AE=87?= Date: Thu, 21 Nov 2024 22:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A2=84=E7=BD=AE=E8=A1=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张欣宇 Change-Id: I52ea8b0d6bfcfb29e5566692ef77d688e29fe169 --- services/bundlemgr/src/bundle_mgr_service_event_handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp b/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp index 163b44683..174ffcf91 100644 --- a/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp +++ b/services/bundlemgr/src/bundle_mgr_service_event_handler.cpp @@ -3864,9 +3864,9 @@ void BMSEventHandler::UpdatePreinstallDBForNotUpdatedBundle(const std::string &b preInstallBundleInfo.SetIconId(applicationInfo.iconResource.id); preInstallBundleInfo.SetModuleName(applicationInfo.labelResource.moduleName); } - auto bundleInfo = item.second.GetBaseBundleInfo(); - if (!bundleInfo.hapModuleInfos.empty() && - bundleInfo.hapModuleInfos[0].moduleType == ModuleType::ENTRY) { + auto innerModuleInfos = item.second.GetInnerModuleInfos(); + if (!innerModuleInfos.empty() && + innerModuleInfos.begin()->second.distro.moduleType == Profile::MODULE_TYPE_ENTRY) { findEntry = true; } }