!1325 add notify memory log

Merge pull request !1325 from 邢亚楠/memory_level_dev
This commit is contained in:
openharmony_ci
2022-08-08 12:33:05 +00:00
committed by Gitee
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2929,6 +2929,7 @@ WMError WindowImpl::SetBackdropBlurStyle(WindowBlurStyle blurStyle)
WMError WindowImpl::NotifyMemoryLevel(int32_t level) const
{
WLOGFI("[Client] Window id: %{public}u, notify memory level: %{public}d", property_->GetWindowId(), level);
if (uiContent_ == nullptr) {
WLOGFE("[Client] Window %{public}s notify memory level failed, because uicontent is null.", name_.c_str());
return WMError::WM_ERROR_NULLPTR;
+1
View File
@@ -183,6 +183,7 @@ std::string WindowScene::GetContentInfo() const
WMError WindowScene::NotifyMemoryLevel(int32_t level) const
{
WLOGFI("Notify memory level: %{public}d", level);
if (mainWindow_ == nullptr) {
WLOGFE("Notify memory level failed, because main window is null");
return WMError::WM_ERROR_NULLPTR;