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.

Pick-to: 6.8
Change-Id: I5f04a323412ce2ce9561cace1f0cec461c133e28
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Tor Arne Vestbø 2024-07-04 15:01:58 +02:00
parent 5edeaa0720
commit 02734b644e
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();