mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-20 20:20:13 -04:00
add mode check for startingWindow
Signed-off-by: chyyy0213 <chenhaiying3@huawei.com> Change-Id: I98844166f19e3aa721870f26f2dd7ec8d169bfc8
This commit is contained in:
@@ -59,7 +59,10 @@ sptr<WindowNode> StartingWindow::CreateWindowNode(const sptr<WindowTransitionInf
|
||||
}
|
||||
|
||||
property->SetRequestRect(info->GetWindowRect());
|
||||
property->SetWindowMode(info->GetWindowMode());
|
||||
if (WindowHelper::IsValidWindowMode(info->GetWindowMode())) {
|
||||
property->SetWindowMode(info->GetWindowMode());
|
||||
}
|
||||
|
||||
property->SetDisplayId(info->GetDisplayId());
|
||||
property->SetWindowType(info->GetWindowType());
|
||||
property->AddWindowFlag(WindowFlag::WINDOW_FLAG_NEED_AVOID);
|
||||
|
||||
@@ -73,7 +73,9 @@ void WindowController::StartingWindow(sptr<WindowTransitionInfo> info, sptr<Medi
|
||||
WLOGFE("windowNode exists but is cold start!");
|
||||
return;
|
||||
}
|
||||
if (node->GetWindowMode() != info->GetWindowMode()) {
|
||||
|
||||
if (WindowHelper::IsValidWindowMode(info->GetWindowMode()) &&
|
||||
(node->GetWindowMode() != info->GetWindowMode())) {
|
||||
WLOGFW("set starting window mode. starting mode is: %{public}u, window mode is:%{public}u.",
|
||||
node->GetWindowMode(), info->GetWindowMode());
|
||||
node->SetWindowMode(info->GetWindowMode());
|
||||
|
||||
Reference in New Issue
Block a user