summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2022-01-04 22:48:15 +0800
committer Ming-Shin Lu <lumark@google.com> 2022-04-01 15:36:41 +0800
commit63a95a2795ed35be7e92314730caa9ce1b8a998c (patch)
tree067d8b1a83d6239a0ed6521d3a9d954d79409f3d /libs/input/SpriteController.cpp
parentd8ea5df38154bfed206cebe288eba385b76e89a4 (diff)
Fix insets animations being skipped when the host view was invisible
In case the insets animation frame will not be scheduled by render thread when the host window was not visible to user, added ViewRootInsetsControllerHost#isVisibleToUser to check when invoking applySurfaceParams to schedule the next frame, if the host was not visible means we don't have to synchronize with the window host and just apply the surface transaction on the UI thread directly. Fix: 206992027 Test: manual as steps 1) Receive any incoming message 2) Tap on inline reply to show the keyboard 3) Tap on the voice input button on the keyboard 4) when permission dialogue prompts on the screen, expecting both notification shade panel collpse animation and IME hiding animation are working fine without any stucked frame. Change-Id: I266587d5a3f136149d116214e2a49de92466ec2e
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions