关闭abilityComponent场景下的窗口

Signed-off-by: dubj <dubingjian@huawei.com>
Change-Id: Iad7ce50f1d76f3e481bdc4fb5b56f535824ced72
This commit is contained in:
dubj
2022-05-06 17:04:59 +08:00
parent 0dd9433a87
commit cbb329201b
+5 -1
View File
@@ -1854,9 +1854,13 @@ void WindowImpl::SetDefaultOption()
property_->SetWindowFlags(0);
break;
}
case WindowType::WINDOW_TYPE_APP_COMPONENT: {
property_->SetWindowMode(WindowMode::WINDOW_MODE_FLOATING);
property_->SetAnimationFlag(static_cast<uint32_t>(WindowAnimation::NONE));
break;
}
case WindowType::WINDOW_TYPE_TOAST:
case WindowType::WINDOW_TYPE_FLOAT:
case WindowType::WINDOW_TYPE_APP_COMPONENT:
case WindowType::WINDOW_TYPE_LAUNCHER_DOCK:
case WindowType::WINDOW_TYPE_SEARCHING_BAR: {
property_->SetWindowMode(WindowMode::WINDOW_MODE_FLOATING);