diff --git a/frameworks/resmgr/src/res_config_impl.cpp b/frameworks/resmgr/src/res_config_impl.cpp index 1664e5fd614481eb50c9b0dd70ce0061861213e3..061c44be40654bc7066eede4232a67aaaa97026e 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