From a01744d86186b0a19de61874991b7c585b681a38 Mon Sep 17 00:00:00 2001 From: wangkailong Date: Thu, 6 Jul 2023 16:07:09 +0800 Subject: [PATCH] applicationinfo Signed-off-by: wangkailong Change-Id: Ie9579241d1a600753eff908ac5854668e92db0b2 --- .../native/appkit/ability_runtime/context/context_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/appkit/ability_runtime/context/context_impl.cpp b/frameworks/native/appkit/ability_runtime/context/context_impl.cpp index e21d2680a05..0f9c9149f97 100644 --- a/frameworks/native/appkit/ability_runtime/context/context_impl.cpp +++ b/frameworks/native/appkit/ability_runtime/context/context_impl.cpp @@ -268,7 +268,7 @@ std::shared_ptr ContextImpl::CreateModuleContext(const std::string &bun appContext->InitHapModuleInfo(*info); appContext->SetConfiguration(config_); InitResourceManager(bundleInfo, appContext, GetBundleName() == bundleName, moduleName); - appContext->SetApplicationInfo(GetApplicationInfo()); + appContext->SetApplicationInfo(std::make_shared(bundleInfo.applicationInfo)); return appContext; } @@ -385,7 +385,7 @@ std::shared_ptr ContextImpl::CreateBundleContext(const std::string &bun // init resourceManager. InitResourceManager(bundleInfo, appContext); - appContext->SetApplicationInfo(GetApplicationInfo()); + appContext->SetApplicationInfo(std::make_shared(bundleInfo.applicationInfo)); return appContext; } -- Gitee