Fixed - going to home when tapping nav pill multiple times

Error Reproduce : Make sure lawnchair set as Recent Provider
1. Open app
2. Tap multiple nav pill
3. issue occur
This commit is contained in:
MrSluffy
2024-02-17 15:40:49 +08:00
parent a6e139781f
commit 6146a4a6f8
@@ -439,7 +439,8 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
// starting the gesture. In that case, we need to clean-up an unfinished or un-started
// animation.
if (mActiveCallbacks != null && mInteractionHandler != null) {
if (mTaskAnimationManager.isRecentsAnimationRunning()) {
if (mTaskAnimationManager.isRecentsAnimationRunning()
&& !allowInterceptByParent()) {
// The animation started, but with no movement, in this case, there will be no
// animateToProgress so we have to manually finish here. In the case of
// ACTION_CANCEL, someone else may be doing something so finish synchronously.