Skip to content

Commit

Permalink
Android: check Qt::ExpandedClientAreaHint when setting size
Browse files Browse the repository at this point in the history
No need to also check for Qt::WindowMaximized, if we're using
Qt::ExpandedClientAreaHint, we would expect the full size to
be used.

Change-Id: I52db0224aa96409a8f2d984e01192001f9b42440
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
Issam-b committed Dec 3, 2024
1 parent 50603fd commit 10805e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/platforms/android/qandroidplatformwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void QAndroidPlatformWindow::setVisible(bool visible)
if (window()->isTopLevel()) {
updateSystemUiVisibility();
if ((m_windowState & Qt::WindowFullScreen)
|| ((m_windowState & Qt::WindowMaximized) && (window()->flags() & Qt::ExpandedClientAreaHint))) {
|| (window()->flags() & Qt::ExpandedClientAreaHint)) {
setGeometry(platformScreen()->geometry());
} else if (m_windowState & Qt::WindowMaximized) {
setGeometry(platformScreen()->availableGeometry());
Expand Down

0 comments on commit 10805e7

Please sign in to comment.