Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Component used: Activity
Version used:
Devices/Android versions reproduced on: Android 10 and older
Target SDK version: 33
I'm following this doc to check keyboard software visibility, the method seems to work fine when my app is in Portrait, but when the app is in Landscape, the method doesn't work properly on Android devices < 11.
OnApplyWindowInsetsListener
is not triggered most of the time, and if it does,Insets.isVisible(WindowInsetsCompat.Type.ime())
will return the wrong value compared to the current visibility of the Keyboard.Attachment: