Finish unfold Shell transition on fold
UnfoldTransitionHandler might be left in the state
when it waits for the unfold animation if we folded
the device before the unfold animation has finished.
This area is very fragile as UnfoldTransitionHandler
tries to 'predict' if UnfoldTransitionProgressProvider
will play the animation or not, so we are getting
these situations when transition might be waiting
for the animation to happen when it won't happen.
Ideally both components should use the same signal,
we have a refactoring bug for this: b/318803244.
Bug: 332548849
Test: atest UnfoldTransitionHandlerTest
Test: fold/unfold quickly => verify transition is finished
Change-Id: I0474f896bb4e307e32675e6a0060e16cfd32ba33
2 files changed