Revert "Support recovery when background and killed by resource_schedule."

This reverts commit e85e75afed.

Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com>
Change-Id: Ia86fc6d50cba5a442acc80d34b8589573232cc6f
This commit is contained in:
zhangyafei-echo 2024-08-14 14:32:17 +08:00
parent a3cdeba3b2
commit 646446c090

View File

@ -144,7 +144,7 @@ bool SubwindowOhos::InitContainer()
return false;
}
subSurface->SetShadowElevation(0.0f);
window_->NapiSetUIContent(url, nullptr, nullptr, Rosen::BackupAndRestoreType::NONE);
window_->NapiSetUIContent(url, nullptr, nullptr, false);
childContainerId_ = SubwindowManager::GetInstance()->GetContainerId(window_->GetWindowId());
TAG_LOGD(AceLogTag::ACE_SUB_WINDOW, "Window child containerId : %{public}d", childContainerId_);
SubwindowManager::GetInstance()->AddParentContainerId(childContainerId_, parentContainerId_);
@ -1043,7 +1043,7 @@ bool SubwindowOhos::InitToastDialogView(int32_t width, int32_t height, float den
{
TAG_LOGD(AceLogTag::ACE_SUB_WINDOW, "init toast dialog view enter");
#ifndef NG_BUILD
dialogWindow_->NapiSetUIContent("", nullptr, nullptr, Rosen::BackupAndRestoreType::NONE);
dialogWindow_->NapiSetUIContent("", nullptr, nullptr, false);
childContainerId_ = SubwindowManager::GetInstance()->GetContainerId(dialogWindow_->GetWindowId());
SubwindowManager::GetInstance()->AddParentContainerId(childContainerId_, parentContainerId_);
ContainerScope scope(childContainerId_);