From 555242e6376e20be0bce07501063bc7d09266655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 4 Jul 2024 15:01:58 +0200 Subject: [PATCH] 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 (cherry picked from commit 02734b644e0ae566163da68dd51623943d41fb13) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/android/qandroidplatformopenglwindow.cpp | 3 --- src/plugins/platforms/android/qandroidplatformvulkanwindow.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp index cd6d37e8a1..c052b00413 100644 --- a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp +++ b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp @@ -39,9 +39,6 @@ QAndroidPlatformOpenGLWindow::~QAndroidPlatformOpenGLWindow() void QAndroidPlatformOpenGLWindow::setGeometry(const QRect &rect) { - if (rect == geometry()) - return; - QAndroidPlatformWindow::setGeometry(rect); QRect availableGeometry = screen()->availableGeometry(); diff --git a/src/plugins/platforms/android/qandroidplatformvulkanwindow.cpp b/src/plugins/platforms/android/qandroidplatformvulkanwindow.cpp index e76492f2b2..e7ab912f62 100644 --- a/src/plugins/platforms/android/qandroidplatformvulkanwindow.cpp +++ b/src/plugins/platforms/android/qandroidplatformvulkanwindow.cpp @@ -33,9 +33,6 @@ QAndroidPlatformVulkanWindow::~QAndroidPlatformVulkanWindow() void QAndroidPlatformVulkanWindow::setGeometry(const QRect &rect) { - if (rect == geometry()) - return; - QAndroidPlatformWindow::setGeometry(rect); QRect availableGeometry = screen()->availableGeometry();