Skip to content

Commit

Permalink
Added dismissal on click outside of the present list elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Muenzer committed Feb 3, 2016
1 parent 788137d commit 3446c31
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
mDownPosition = mRecyclerView.getChildPosition(mRowContainer.container);
mVelocityTracker = VelocityTracker.obtain();
mVelocityTracker.addMovement(motionEvent);
} else if (existPendingDismisses()) {
// Dismiss pending items if the user clicks outside of the list
processPendingDismisses();
}

return false;
Expand Down

0 comments on commit 3446c31

Please sign in to comment.