diff options
| author | 2025-02-05 17:40:35 +0800 | |
|---|---|---|
| committer | 2025-02-06 04:30:01 -0800 | |
| commit | dfc5564aa2a2eb634fdb0c4ba75990213fb563d8 (patch) | |
| tree | a5593d9f917c654b6bb9f27fbe88aa21aa00a9f4 /opengl/java | |
| parent | 310f7b88cd153fb4fb0ceb1ceab2bd2658333e8f (diff) | |
Use current IME target to update IME request state if no insets target
This is the preparation to remove outdated
mImeInsetsFrozenUntilStartInput, which is no longer valid since
shell transition enabled because it was used for animating but
now it is only set after animation is finished.
The corresponding logic onImeInsetsClientVisibilityUpdate may trigger
redundant invokeOnImeRequestedChangedListener which may hide some
real problems. Such as the IME hide request from remote insets
target doesn't work.
So this change gives a chance to fallback using current IME target
to update IME state, which aligns the same logic as
ImeInsetsSourceProvider#updateClientVisibility that always use
current IME target, them IME can get correct state earlier rather
than relying on random event which calls updateClientVisibility.
Bug: 298172246
Flag: android.view.inputmethod.refactor_insets_controller
Test: Assume that onImeInsetsClientVisibilityUpdate is removed:
Use 3 button navigation.
Launch a split-pair task. Return to home.
Launch another task with showing IME.
Use recents key to switch to split-pair which didn't show IME.
The navigation bar should not be IME visible state
(the back arrow should not show as downward).
Change-Id: I78208c08ed1b64d9edb2fa65ca78b6dd906342d1
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions