From 86a111b4a93225215fa9310f70b441375ff1fb06 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Wed, 18 Jun 2025 18:01:02 +0800 Subject: [PATCH] modify RegisterInstance getlanguage Signed-off-by: zhangzezhong --- frameworks/native/appkit/app/main_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/appkit/app/main_thread.cpp b/frameworks/native/appkit/app/main_thread.cpp index 440f040ffdb..f9f2b2b5729 100644 --- a/frameworks/native/appkit/app/main_thread.cpp +++ b/frameworks/native/appkit/app/main_thread.cpp @@ -2310,7 +2310,7 @@ bool MainThread::PrepareAbilityDelegator(const std::shared_ptr & auto testRunner = TestRunner::Create(runtime, args, false); auto delegator = IAbilityDelegator::Create(runtime, application_->GetAppContext(), std::move(testRunner), record->observer); - AbilityDelegatorRegistry::RegisterInstance(delegator, args, AbilityRuntime::Runtime::Language::JS); + AbilityDelegatorRegistry::RegisterInstance(delegator, args, runtime->GetLanguage()); delegator->SetApiTargetVersion(targetVersion); delegator->Prepare(); } @@ -2321,7 +2321,7 @@ bool MainThread::PrepareAbilityDelegator(const std::shared_ptr & auto testRunner = TestRunner::Create(runtime, args, false); auto delegator = IAbilityDelegator::Create(runtime, application_->GetAppContext(), std::move(testRunner), record->observer); - AbilityDelegatorRegistry::RegisterInstance(delegator, args, AbilityRuntime::Runtime::Language::STS); + AbilityDelegatorRegistry::RegisterInstance(delegator, args, runtime->GetLanguage()); delegator->SetApiTargetVersion(targetVersion); delegator->Prepare(); } -- Gitee