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

Commit 25e99ce6 authored by Gus Prevas's avatar Gus Prevas Committed by Android Git Automerger
Browse files

am 043d7a94: am 12b1b8ed: am 026e204e: Fixes velocity tracking bug in SwipeDismissLayout.

* commit '043d7a94':
  Fixes velocity tracking bug in SwipeDismissLayout.
parents 50b37f8c 043d7a94
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);