mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-22 21:16:40 -04:00
spilt mode window to immersive bugdix
Signed-off-by: jincanran <jincanran@huawei.com> Change-Id: I9026f3dc786c3d57ca1dab1cf8ebf92b1a9b000a
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user