summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Nick Chameyev <nickchameyev@google.com> 2023-08-22 13:47:16 +0000
committer Nick Chameyev <nickchameyev@google.com> 2023-08-22 15:38:02 +0000
commite44f4a4788bbff7910109c25f1267e61a5ec7e85 (patch)
tree757690285bc9f5e0954ce0d86403bc6db17f2af8 /libs/input/PointerController.cpp
parentef4b10d1c72e8a22e70fb38c8b9211e3c55aba0f (diff)
Finish unfold Shell transition if animation has finished already
We receive unfold animation progress updates from SystemUI in UnfoldTransitionHandler using onStateChangeStarted/Progress/Finished callbacks. If Shell transition starts *after* unfold animation has already finished (onStateChangeFinished callback is called), then Shell transition will never be finished. This CL adds a flag that we set when animation is finished already and it forces the Shell transition to finish immediately if this flag is set. The flag resets on folding the device, so next time when unfolding it, it will be animated again. Bug: 289783110 Test: atest UnfoldTransitionHandlerTest Test: add a delay to start shell transition => verify that it finishes Change-Id: Ibd782aed71094b9f481f260799513ca7fc19f600
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions