!159 showcase要求最大化得同时隐藏状态栏导航栏

Merge pull request !159 from leafly2021/0111
This commit is contained in:
openharmony_ci
2022-01-25 08:36:30 +00:00
committed by Gitee
+1 -1
View File
@@ -515,7 +515,7 @@ WMError WindowImpl::Maximize()
return WMError::WM_ERROR_INVALID_WINDOW;
}
if (WindowHelper::IsMainWindow(property_->GetWindowType())) {
SetWindowMode(WindowMode::WINDOW_MODE_FULLSCREEN);
SetFullScreen(true);
}
return WMError::WM_OK;
}