!29 添加回注释代码,调用UiContent的方法

Merge pull request !29 from maojiangping/master
This commit is contained in:
openharmony_ci
2022-01-12 03:06:31 +00:00
committed by Gitee
+5 -6
View File
@@ -191,12 +191,11 @@ WMError WindowImpl::SetUIContent(std::shared_ptr<AbilityRuntime::AbilityContext>
WLOGFE("fail to SetUIContent id: %{public}d", property_->GetWindowId());
return WMError::WM_ERROR_NULLPTR;
}
// TODO: fix me
// if (isdistributed) {
// uiContent_->Restore(this, contentInfo, storage);
// } else {
// uiContent_->Initialize(this, contentInfo, storage);
// }
if (isdistributed) {
uiContent_->Restore(this, contentInfo, storage);
} else {
uiContent_->Initialize(this, contentInfo, storage);
}
return WMError::WM_OK;
}