From 3efbf48dc83967bba407c7069aac781821195e64 Mon Sep 17 00:00:00 2001 From: Thinh Date: Tue, 14 Apr 2015 17:37:14 +0700 Subject: [PATCH] Fix click on view Fix click on view --- .../example/android/swipedismiss/SwipeDismissTouchListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/example/android/swipedismiss/SwipeDismissTouchListener.java b/src/com/example/android/swipedismiss/SwipeDismissTouchListener.java index 8e8c098..3d813c1 100644 --- a/src/com/example/android/swipedismiss/SwipeDismissTouchListener.java +++ b/src/com/example/android/swipedismiss/SwipeDismissTouchListener.java @@ -134,6 +134,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) { if (mCallbacks.canDismiss(mToken)) { mVelocityTracker = VelocityTracker.obtain(); mVelocityTracker.addMovement(motionEvent); + return true; } return false; }