Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a9a2df8 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8735997 from 9d5f64ad to tm-release

Change-Id: Ib0d762c2aa540e645f26df962cc4397c21fe5eee
parents c44e85cc 9d5f64ad
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -425,10 +425,16 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
            mMainThreadHandler.removeCallbacks(mCancelRecentsAnimationRunnable);
            mMainThreadHandler.postDelayed(mCancelRecentsAnimationRunnable, 100);
        }
        cleanupAfterGesture();
        TraceHelper.INSTANCE.endSection(traceToken);
    }

    private void cleanupAfterGesture() {
        if (mVelocityTracker != null) {
            mVelocityTracker.recycle();
            mVelocityTracker = null;
        }
        mMotionPauseDetector.clear();
        TraceHelper.INSTANCE.endSection(traceToken);
    }

    @Override
@@ -453,6 +459,7 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
        Preconditions.assertUIThread();
        removeListener();
        mInteractionHandler = null;
        cleanupAfterGesture();
        mOnCompleteCallback.accept(this);
    }