From 087dc08f3f9580e63cf14d699d0a14af0a035f49 Mon Sep 17 00:00:00 2001 From: liule Date: Thu, 26 Sep 2024 09:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E5=81=8F=E5=A5=BD=E8=AF=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liule --- frameworks/resmgr/src/res_config_impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frameworks/resmgr/src/res_config_impl.cpp b/frameworks/resmgr/src/res_config_impl.cpp index 1664e5f..061c44b 100644 --- a/frameworks/resmgr/src/res_config_impl.cpp +++ b/frameworks/resmgr/src/res_config_impl.cpp @@ -423,7 +423,10 @@ bool ResConfigImpl::Match(const std::shared_ptr other, bool isChe bool isPreferredLocaleMatch = false; #ifdef SUPPORT_GRAPHICS if (this->resPreferredLocale_ != nullptr) { - isPreferredLocaleMatch = LocaleMatcher::Match(this->resPreferredLocale_, other->GetResLocale()); + isPreferredLocaleMatch = true; + if (!LocaleMatcher::Match(this->resPreferredLocale_, other->GetResLocale())) { + return false; + } } #endif -- Gitee