mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-20 01:13:32 -04:00
!159 showcase要求最大化得同时隐藏状态栏导航栏
Merge pull request !159 from leafly2021/0111
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user