Android: Unconditionally set geometry when asked to via setGeometry

The geometry() of the platform window may match the incoming geometry
at the point of the call, but the native geometry of the Android layout
and view might not, so we still need to propagate it to the platform.

This matches what other platforms do in QPlatformWindow::setGeometry.

Change-Id: I5f04a323412ce2ce9561cace1f0cec461c133e28
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 02734b644e0ae566163da68dd51623943d41fb13)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
bb10
Tor Arne Vestbø 2024-07-04 15:01:58 +02:00 committed by Qt Cherry-pick Bot
parent 35f3ba214b
commit 555242e637
2 changed files with 0 additions and 6 deletions

View File

@ -39,9 +39,6 @@ QAndroidPlatformOpenGLWindow::~QAndroidPlatformOpenGLWindow()
void QAndroidPlatformOpenGLWindow::setGeometry(const QRect &rect)
{
if (rect == geometry())
return;
QAndroidPlatformWindow::setGeometry(rect);
QRect availableGeometry = screen()->availableGeometry();

View File

@ -33,9 +33,6 @@ QAndroidPlatformVulkanWindow::~QAndroidPlatformVulkanWindow()
void QAndroidPlatformVulkanWindow::setGeometry(const QRect &rect)
{
if (rect == geometry())
return;
QAndroidPlatformWindow::setGeometry(rect);
QRect availableGeometry = screen()->availableGeometry();