diff --git a/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp b/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp index 2e4c824bc1..b6b7dbe0f7 100644 --- a/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp +++ b/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp @@ -402,7 +402,7 @@ bool JsAbilityStage::CallOnPrepareTerminateAsync(napi_env env, std::string JsAbilityStage::OnAcceptWant(const AAFwk::Want &want, AppExecFwk::AbilityTransactionCallbackInfo *callbackInfo, bool &isAsync) { - TAG_LOGI(AAFwkTag::APPKIT, "OnAcceptWant called"); + TAG_LOGD(AAFwkTag::APPKIT, "OnAcceptWant called"); AbilityStage::OnAcceptWant(want, callbackInfo, isAsync); HandleScope handleScope(jsRuntime_); diff --git a/frameworks/native/appkit/ability_runtime/context/js_system_configuration_updated_callback.cpp b/frameworks/native/appkit/ability_runtime/context/js_system_configuration_updated_callback.cpp index b652bf33aa..0eb8d7e9aa 100644 --- a/frameworks/native/appkit/ability_runtime/context/js_system_configuration_updated_callback.cpp +++ b/frameworks/native/appkit/ability_runtime/context/js_system_configuration_updated_callback.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023-2024 Huawei Device Co., Ltd. + * Copyright (c) 2026 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/frameworks/native/appkit/app/ohos_application.cpp b/frameworks/native/appkit/app/ohos_application.cpp index f0944dc17c..603777aba2 100644 --- a/frameworks/native/appkit/app/ohos_application.cpp +++ b/frameworks/native/appkit/app/ohos_application.cpp @@ -1153,12 +1153,14 @@ bool OHOSApplication::isUpdateFontSize(Configuration &config, AbilityRuntime::Se auto preLevle = ApplicationConfigurationManager::GetInstance().GetFontSetLevel(); if (level < preLevle) { + TAG_LOGW(AAFwkTag::APPKIT, "low level"); config.RemoveItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE); return false; } std::string globalFontFollowSysteme = configuration_->GetItem(AAFwk::GlobalConfigurationKey::APP_FONT_SIZE_SCALE); if (level == preLevle && !globalFontFollowSysteme.empty()) { + TAG_LOGW(AAFwkTag::APPKIT, "same level"); if (globalFontFollowSysteme.compare(ConfigurationInner::IS_APP_FONT_FOLLOW_SYSTEM) == 0) { return true; } @@ -1167,6 +1169,7 @@ bool OHOSApplication::isUpdateFontSize(Configuration &config, AbilityRuntime::Se } // level > preLevle + TAG_LOGW(AAFwkTag::APPKIT, "high level"); configuration_->RemoveItem(AAFwk::GlobalConfigurationKey::APP_FONT_SIZE_SCALE); ApplicationConfigurationManager::GetInstance().SetfontSetLevel(level); return true;