From 2eb1e12ab98552ca4ee3203b631dcd452cdbc6c1 Mon Sep 17 00:00:00 2001 From: fangzhiyuan Date: Fri, 7 Jun 2024 22:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=AA=97apiTargetVersion=20bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangzhiyuan Change-Id: Icabeded99f350b2e2b365462b609242bec03f5e0 --- adapter/ohos/entrance/ui_content_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapter/ohos/entrance/ui_content_impl.cpp b/adapter/ohos/entrance/ui_content_impl.cpp index ee1e5d903ef..7d8bcd80b89 100644 --- a/adapter/ohos/entrance/ui_content_impl.cpp +++ b/adapter/ohos/entrance/ui_content_impl.cpp @@ -2338,6 +2338,9 @@ void UIContentImpl::InitializeSubWindow(OHOS::Rosen::Window* window, bool isDial container->SetBundlePath(context->GetBundleCodeDir()); container->SetFilesDataPath(context->GetFilesDir()); + } else { + auto apiTargetVersion = AceApplicationInfo::GetInstance().GetApiTargetVersion(); + container->SetApiTargetVersion(apiTargetVersion); } SubwindowManager::GetInstance()->AddContainerId(window->GetWindowId(), instanceId_); AceEngine::Get().AddContainer(instanceId_, container);