!35205 子窗apiTargetVersion bugfix

Merge pull request !35205 from fangzhiyuan/api
This commit is contained in:
openharmony_ci 2024-06-08 02:13:56 +00:00 committed by Gitee
commit dc1b6c362b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);