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.

Pick-to: 6.8
Change-Id: I9717d185a3fe008f4d23a02c527e1a9739aea1d6
Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
This commit is contained in:
Tor Arne Vestbø 2024-07-04 15:26:24 +02:00
parent 6e52d01053
commit aa45280d97

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)