diff options
| author | 2025-03-12 15:12:49 +0000 | |
|---|---|---|
| committer | 2025-03-13 14:46:13 -0700 | |
| commit | ffad14c9638381fb8611c0657bdfd7882acda5cf (patch) | |
| tree | 4161f0c6fc05b0ecd69e11a8a56f397cdfca27f9 /libs/androidfw/PathUtils.cpp | |
| parent | 9a50081afb1a336b76dc90d169187c49f346ba93 (diff) | |
Fix BackAnimationController race condition
This CL fixes a race condition in BackAnimationController. Since
onThresholdCrossed is not executed on the shell main thread, the
ordering between other BackAnimation API function calls was not
guaranteed. Namely, onThresholdCrossed could have been executed before
the first MOVE event was processed, resulting in startBackAnimation not
being called. In that case, BackAnimationController injected legacy back
events as a fallback instead of playing the predictive back animation.
Executing onThresholdCrossed on the shell main thread instead should
resolve this problem.
Additionally, the recently implemented small related change (commit 13423234d99327cf16fec9ac76b8bd116a586b26) in EBGH is
put behind the predictiveBackDelayWmTransition flag as well.
Bug: 401832380
Flag: com.android.systemui.predictive_back_delay_wm_transition
Test: BackGestureInvokedTest
Change-Id: I77d0d1de66934754cc64330130d4bd34b4634796
Diffstat (limited to 'libs/androidfw/PathUtils.cpp')
0 files changed, 0 insertions, 0 deletions