h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 860 forks source link

Unable to drop to the last position if checkCanDropEnabled set to true #475

Open akhris opened 5 years ago

akhris commented 5 years ago

Hello! I got into some strange behavior of "Expandable-Draggable-Swipeable-Example". If you call mRecyclerViewDragDropManager.setCheckCanDropEnabled(true) and expand the last item in the list you will not be able to drag any other item to the last position. When collapsed it works correct again. I did not make any other changes to example code, so

If you delete the call "mRecyclerViewDragDropManager.setCheckCanDropEnabled(true)" you will be able to drag to the last position even if it's expanded.