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:
parent
5edeaa0720
commit
02734b644e
@ -39,9 +39,6 @@ QAndroidPlatformOpenGLWindow::~QAndroidPlatformOpenGLWindow()
|
||||
|
||||
void QAndroidPlatformOpenGLWindow::setGeometry(const QRect &rect)
|
||||
{
|
||||
if (rect == geometry())
|
||||
return;
|
||||
|
||||
QAndroidPlatformWindow::setGeometry(rect);
|
||||
|
||||
QRect availableGeometry = screen()->availableGeometry();
|
||||
|
@ -33,9 +33,6 @@ QAndroidPlatformVulkanWindow::~QAndroidPlatformVulkanWindow()
|
||||
|
||||
void QAndroidPlatformVulkanWindow::setGeometry(const QRect &rect)
|
||||
{
|
||||
if (rect == geometry())
|
||||
return;
|
||||
|
||||
QAndroidPlatformWindow::setGeometry(rect);
|
||||
|
||||
QRect availableGeometry = screen()->availableGeometry();
|
||||
|
Loading…
x
Reference in New Issue
Block a user