summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Cosmin Băieș <cosminbaies@google.com> 2025-03-11 16:11:08 +0100
committer Cosmin Băieș <cosminbaies@google.com> 2025-03-14 14:51:09 +0100
commit1950c2b35026ce3d3b20352796e1ced3863ba86c (patch)
treeb94f9a0a28f0dd5ace19437a2db19bf977bb0e92 /api/api_test.go
parent4a2e7e3a7fd57db0f02070d9e30ed834a432b3ec (diff)
Set IME nav bar height when installing unattached
When installing the IME navigation bar height the systemInsets can be null if the DecorView is not attached to the window yet. In this case we still add the NavigationBarFrame to the DecorView, with the default LayoutParams, which resolve the height to MATCH_PARENT. Since ensuring the IME insets contain at least the IME navigation bar in [1], this could lead to full size IME insets for a few frames. This sets the initial IME navigation bar height to the captionBarHeight when the DecorView is not attached yet. [1]: Id252731ac8b5138cccd1164197ff3ece3a5f3cf8 Flag: EXEMPT bugfix Bug: 401192777 Bug: 387924046 Test: atest WindowInsetsControllerTests#testDispatchApplyWindowInsetsCount_ime WindowInsetsControllerTests#testImeInsetsFinalSizeIsMaximumSize InputMethodServiceTest#testImeNavigationBarInsets Change-Id: Icd174e9dd64b33804bedfcc6cdf0ddf90e29fecd
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions