mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
字体不跟随问题修复
Signed-off-by: songjindian <songjindian1@huawei.com>
This commit is contained in:
parent
53b48907e1
commit
08006d619b
@ -446,7 +446,6 @@ void OHOSApplication::OnConfigurationUpdated(Configuration config)
|
||||
std::string language = config.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE);
|
||||
std::string colorMode = config.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_COLORMODE);
|
||||
std::string fontSizeScal = config.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE);
|
||||
std::string fontWeightScale = config.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE);
|
||||
std::string languageIsSetByApp =
|
||||
config.GetItem(AAFwk::GlobalConfigurationKey::LANGUAGE_IS_SET_BY_APP);
|
||||
std::string colorModeIsSetByApp =
|
||||
@ -484,7 +483,7 @@ void OHOSApplication::OnConfigurationUpdated(Configuration config)
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!fontSizeScal.empty() || !fontWeightScale.empty()) {
|
||||
if (!fontSizeScal.empty()) {
|
||||
if (!globalFontFollowSysteme.empty()
|
||||
&& globalFontFollowSysteme.compare(ConfigurationInner::IS_APP_FONT_FOLLOW_SYSTEM) != 0) {
|
||||
TAG_LOGW(AAFwkTag::APPKIT, "the font configured for the app does not take effect with the system");
|
||||
|
Loading…
Reference in New Issue
Block a user