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

Commit 12b1b8ed authored by Gus Prevas's avatar Gus Prevas Committed by Android Git Automerger
Browse files

am 026e204e: Fixes velocity tracking bug in SwipeDismissLayout.

* commit '026e204e':
  Fixes velocity tracking bug in SwipeDismissLayout.
parents a1c7176b 026e204e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -216,6 +216,8 @@ public class SwipeDismissLayout extends FrameLayout {
        if (mVelocityTracker == null) {
            return super.onTouchEvent(ev);
        }
        // offset because the view is translated during swipe
        ev.offsetLocation(mTranslationX, 0);
        switch (ev.getActionMasked()) {
            case MotionEvent.ACTION_UP:
                updateDismiss(ev);