mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -402,7 +402,7 @@ bool JsAbilityStage::CallOnPrepareTerminateAsync(napi_env env,
|
||||
std::string JsAbilityStage::OnAcceptWant(const AAFwk::Want &want,
|
||||
AppExecFwk::AbilityTransactionCallbackInfo<std::string> *callbackInfo, bool &isAsync)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "OnAcceptWant called");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "OnAcceptWant called");
|
||||
AbilityStage::OnAcceptWant(want, callbackInfo, isAsync);
|
||||
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user