diff options
author | Ming-Shin Lu <lumark@google.com> | 2021-01-14 21:03:15 +0800 |
---|---|---|
committer | Ming-Shin Lu <lumark@google.com> | 2021-01-29 20:31:01 +0800 |
commit | 0f536fa99489c5cfd2d266e94798b19540e2cd12 (patch) | |
tree | 6973ab5d7699ead7e59d6b4c17ecf4990e9d5c51 /rs/java/android/renderscript/RenderScriptCacheDir.java | |
parent | cd6911ec520c86590dd520ff9c9bbe25e2456c61 (diff) |
Better IME transition while switching app with recents (6/N)
Add WindowState#{freezeInsetsState, clearFrozenInsetsState} to freeze
the insets state of the window to keep the insets state when the window
is in app exiting transition, to ensure the exiting window won't
receive unexpected insets changes from the next window.
And, in order to easy maintain the logic of dispatching all windows's
insets changed event in InsetsStateController, instead of adding
complicated rule in InsetsStateController to judge if the window can
disatch insets change, we can replace with
WindowState#isReadyToDispatchInsetsState() to wrap the dispatch
judgement.
Bug: 166736352
Test: atest CtsWindowManagerDeviceTestCases WmTests
Test: atest WindowStateTests#testSetFreezeInsetsState
Test: atest WindowContainerTests#testFreezeInsetsStateWhenAppTransition
Change-Id: I56418733c1abbd73e88a8918a5d55ecc15344c5e
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions