spilt mode window to immersive bugdix

Signed-off-by: jincanran <jincanran@huawei.com>
Change-Id: I9026f3dc786c3d57ca1dab1cf8ebf92b1a9b000a
This commit is contained in:
jincanran
2022-03-12 12:15:38 +08:00
parent 4b4d30c969
commit d10574c779
+9 -3
View File
@@ -490,15 +490,21 @@ void WindowNodeContainer::NotifyIfSystemBarRegionChanged()
void WindowNodeContainer::NotifySystemBarDismiss(sptr<WindowNode>& node)
{
WM_FUNCTION_TRACE();
if (node == nullptr) {
WLOGE("could not find window");
return;
}
SystemBarRegionTints tints;
auto& sysBarPropMapNode = node->GetSystemBarProperty();
for (auto it : sysBarPropMapNode) {
it.second.enable_ = false;
node->SetSystemBarProperty(it.first, it.second);
WLOGFI("set system bar enable to false, id: %{public}u, type: %{public}d",
node->GetWindowId(), static_cast<int32_t>(it.first));
if (sysBarTintMap_[it.first].prop_.enable_) {
sysBarTintMap_[it.first].prop_.enable_ = false;
it.second.enable_ = false;
node->SetSystemBarProperty(it.first, it.second);
tints.emplace_back(sysBarTintMap_[it.first]);
WLOGFI("system bar dismiss, type: %{public}d", static_cast<int32_t>(it.first));
WLOGFI("notify system bar dismiss, type: %{public}d", static_cast<int32_t>(it.first));
}
}
WindowManagerAgentController::GetInstance().UpdateSystemBarRegionTints(displayId_, tints);