Android: call requestApplyInsets() after system ui visibility change

Always call decorView.requestApplyInsets() after a system ui
visibility change. This ensures the insets are updated and we
don't end up with wrong window sizes or half-way transitions
to different visibility states. With this change, the various
transitions are no longer flaky, many tests for safe margins
and fullscreen dimensions under tst_android are now reliably
executed over multiple iterations.

Pick-to: 6.10 6.10.0 6.9 6.8
Change-Id: I69260f76aa0a0e67f65918b6a8b10413cae13fd4
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Assam Boudjelthia 2025-09-10 17:57:28 +03:00
parent c603091382
commit 41491e96ac
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ class QtDisplayManager
window.setNavigationBarColor(defaultNavigationBarColor);
}
}
decorView.post(() -> decorView.requestApplyInsets());
}
boolean isFullScreen()