Android: inset normal windows under enforced edge-to-edge
Apply system-bar and cutout margins to the Activity root
for normal windows when edge-to-edge is enforced. Clear
these margins for expanded and fullscreen windows and
preserve app-managed margins when enforcement is absent.
Handle insets in QtRootLayout, preserving the application's
decor listener and read original root insets to exclude the
IME.
Pick-to: 6.12
Task-number: QTBUG-151381
Change-Id: I2a951b3a7fef361bb3c1c808aafb1890eab93e38
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
| commit | 0758d5d719e48d76d89a5d3140343c1a03a5b61a |
| parent | 3b30461be57d207f6eb0c857248ddb4ac4ffb81e |
| author | Assam Boudjelthia <assam.boudjelthia@qt.io> |
| committer | Assam Boudjelthia <assam.boudjelthia@qt.io> |
| commit time | Tue, 20 Oct 2026 10:41:23 +0000 |
- M src/android/jar/src/org/qtproject/qt/android/QtLayout.java
- M src/android/jar/src/org/qtproject/qt/android/QtRootLayout.java
- M src/android/jar/src/org/qtproject/qt/android/QtWindow.java
- M src/android/jar/src/org/qtproject/qt/android/QtWindowInsetsController.java
- A tests/auto/corelib/platform/android/testdata/src/org/qtproject/qt/android/TestEditText.java
- M tests/auto/corelib/platform/android/tst_android.cpp