[L] 去掉窗口工具栏title log

Signed-off-by:lisitaolisitao3@huawei.com

Signed-off-by: lisitao <lisitao3@huawei.com>
Change-Id: I3674b9afb34bc919259deb87b8b3d9f6017667c0
This commit is contained in:
lisitao 2024-11-22 11:36:30 +08:00
parent 944985b6ef
commit f8f495c447
2 changed files with 4 additions and 5 deletions

View File

@ -532,7 +532,7 @@ void ContainerModalElement::SetAppTitle(const std::string& title)
auto textComponent = containerModalComponent_->GetTitleLabel();
CHECK_NULL_VOID(textComponent);
if (textComponent->GetData() == title) {
TAG_LOGI(AceLogTag::ACE_APPBAR, "set same title, skip, title is %{public}s", title.c_str());
TAG_LOGI(AceLogTag::ACE_APPBAR, "set same title, skip");
return;
}
textComponent->SetData(title);
@ -541,9 +541,8 @@ void ContainerModalElement::SetAppTitle(const std::string& title)
CHECK_NULL_VOID(renderTitle);
renderTitle->Update(textComponent);
renderTitle->MarkNeedRender();
TAG_LOGI(AceLogTag::ACE_APPBAR,
"set app title successfully, title:%{public}s, isFloatingTitle:%{public}d",
title.c_str(), static_cast<int>(isFloatingTitle));
TAG_LOGI(AceLogTag::ACE_APPBAR, "set app title successfully, isFloatingTitle:%{public}d",
static_cast<int>(isFloatingTitle));
}
void ContainerModalElement::SetAppIcon(const RefPtr<PixelMap>& icon)

View File

@ -454,7 +454,7 @@ bool ContainerModalPattern::CanShowFloatingTitle()
void ContainerModalPattern::SetAppTitle(const std::string& title)
{
TAG_LOGI(AceLogTag::ACE_APPBAR, "SetAppTitle successfully, title is %{public}s", title.c_str());
TAG_LOGI(AceLogTag::ACE_APPBAR, "SetAppTitle successfully");
auto customTitleNode = GetCustomTitleNode();
CHECK_NULL_VOID(customTitleNode);
customTitleNode->FireAppTitleCallback(title);