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

Commit c503896a authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix crash in ExpandHelper

Bug: 16645584
Change-Id: Ifbcd8c88cda0a390061c162aa43d8615d1311f19
parent 9a090e6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -359,8 +359,8 @@ public class ExpandHelper implements Gefingerpoken {
    }

    private void maybeRecycleVelocityTracker(MotionEvent event) {
        if (event.getActionMasked() == MotionEvent.ACTION_CANCEL
                || event.getActionMasked() == MotionEvent.ACTION_UP) {
        if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL
                || event.getActionMasked() == MotionEvent.ACTION_UP)) {
            mVelocityTracker.recycle();
            mVelocityTracker = null;
        }