From f53ccb009c18e4766ddd29b4766a3676bf875d88 Mon Sep 17 00:00:00 2001 From: linfaxin Date: Wed, 22 Apr 2015 19:02:05 +0800 Subject: [PATCH] fix issue: https://github.com/daimajia/AndroidSwipeLayout/issues/134#issuecomment-95018822 --- library/src/main/java/com/daimajia/swipe/SwipeLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/daimajia/swipe/SwipeLayout.java b/library/src/main/java/com/daimajia/swipe/SwipeLayout.java index a451bf9..34f6bfb 100644 --- a/library/src/main/java/com/daimajia/swipe/SwipeLayout.java +++ b/library/src/main/java/com/daimajia/swipe/SwipeLayout.java @@ -329,10 +329,10 @@ public class SwipeLayout extends FrameLayout { @Override public void onViewReleased(View releasedChild, float xvel, float yvel) { super.onViewReleased(releasedChild, xvel, yvel); + processHandRelease(xvel, yvel, isCloseBeforeDrag); for (SwipeListener l : mSwipeListeners){ l.onHandRelease(SwipeLayout.this, xvel, yvel); } - processHandRelease(xvel, yvel, isCloseBeforeDrag); invalidate(); }