Skip to content

False Window inset is set when dismissing keyboard preventing apps from using the full screen.  #118761

@xster

Description

@xster

This issue appears on android api 30 and above. (pre api 30 takes a different path and uses a heuristic to set window metrics).

When setting that the app wants full screen behavior by using WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
The app will go fullscreen but then when keyboard is opened and closed the app incorrectly sets a window inset the size of the navigation bars even though there is no navigation bar.

Example screenshot showing the content in white and the background in red.

Screenshot 2023-01-24 at 10 58 09 AM

Original bug content "Extracting generic issue from b/258263557 where incorrect viewInsets were transiently being reported as the soft keyboard is being shown. "

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemscustomer: googleVarious Google teamsplatform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions