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
parent
35f3ba214b
commit
555242e637
|
|
@ -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…
Reference in New Issue