mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
[L] 去掉窗口工具栏title log
Signed-off-by:lisitaolisitao3@huawei.com Signed-off-by: lisitao <lisitao3@huawei.com> Change-Id: I3674b9afb34bc919259deb87b8b3d9f6017667c0
This commit is contained in:
parent
944985b6ef
commit
f8f495c447
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user