Android: Don't set QtWindow layout to MATCH_PARENT when adding top level

The top level might have a non-fullscreen geometry set, and we should
respect that.

Change-Id: I9717d185a3fe008f4d23a02c527e1a9739aea1d6
Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
(cherry picked from commit aa45280d972460a4da500d2f6a2bb4fa5f8b6e43)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2024-07-04 15:26:24 +02:00 committed by Qt Cherry-pick Bot
parent 8a8df25f32
commit 292965201a

View File

@ -355,10 +355,6 @@ class QtActivityDelegate extends QtActivityDelegateBase
}
}
window.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
m_layout.addView(window, m_topLevelWindows.size());
m_topLevelWindows.put(window.getId(), window);
if (!m_splashScreenSticky)