From 26a5c5b8e7722fd0507e47bd2510da59d9fcfdaa Mon Sep 17 00:00:00 2001 From: Sebastian Marschall Date: Thu, 7 May 2015 09:03:49 +0200 Subject: [PATCH] Update DragSortController.java unnecessary condition, mFlingHitPos is always 'true' here --- library/src/com/mobeta/android/dslv/DragSortController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/com/mobeta/android/dslv/DragSortController.java b/library/src/com/mobeta/android/dslv/DragSortController.java index 41d477e..b7004ea 100644 --- a/library/src/com/mobeta/android/dslv/DragSortController.java +++ b/library/src/com/mobeta/android/dslv/DragSortController.java @@ -395,7 +395,7 @@ else if (mDragInitMode != ON_DOWN && Math.abs(x2 - x1) > mTouchSlop && mRemoveEn mIsRemoving = true; startDrag(mFlingHitPos, deltaX, deltaY); } - } else if (mFlingHitPos != MISS) { + } else { if (Math.abs(x2 - x1) > mTouchSlop && mRemoveEnabled) { mIsRemoving = true; startDrag(mFlingHitPos, deltaX, deltaY);