summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseBooleanArray.java
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2022-05-08 14:31:02 +0000
committerMing-Shin Lu <lumark@google.com>2022-05-12 14:37:05 +0000
commitb3727558832ed7f41b3823a9eccbb9c064652cb3 (patch)
tree4e4845983d3da8243c56529fd6c6bd10684b8607 /core/java/android/util/SparseBooleanArray.java
parentc0573c9851282fc54d3e3906d7250d5b152e79c9 (diff)
Fix IME insets animation stucked by wrong InsetsHint
There is a chance that if InsetsSourceProvider#updateControlForTarget invoked when its serverVisible not yet visible, then the insetsHint of the new InsetsSourceControl will be empty because CL[1] will set insets source frame as empty when the serverVisible is false. This would make the insetsHint of the control may not able to get updated if the source frame size is same as the last visible source frame in the next onPostLayout, that affects the insets animation will not fullly animated because of wrong InsetsHint. Add a mInsetsHint field in InsetsSourceProvider to strore the last insetsHint from onPostLayout for initializing the new source control. [1]: Ie7845de2830cdbdfd0049b8eef5a5f0704f796e8 Fix: 230581950 Bug: 229938982 Test: manual as issue steps. Test: atest InsetsStateControllTest#testGetInsetsHintForNewControl Change-Id: I0fd5845d1f816b558deeed490c93ec207e2f0607
Diffstat (limited to 'core/java/android/util/SparseBooleanArray.java')
0 files changed, 0 insertions, 0 deletions