Android: Remove m_surfaceCreated check from setNativeGeometry
As long as we have a QtWindow we should be able to set its layout parameters. Adding surfaces or native views later on will adopt the QtWindow's layout params. Change-Id: I08591e18f95bfe1e85358bb68507145d35630486 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> (cherry picked from commit 79ae28d9ace358c20c716ced0d0d9471b500e0cc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
913552ad0b
commit
f8ae1a4ab1
@ -295,8 +295,7 @@ void QAndroidPlatformWindow::destroySurface()
|
||||
|
||||
void QAndroidPlatformWindow::setNativeGeometry(const QRect &geometry)
|
||||
{
|
||||
if (!m_surfaceCreated)
|
||||
return;
|
||||
Q_ASSERT(m_nativeQtWindow.isValid());
|
||||
|
||||
jint x = 0;
|
||||
jint y = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user