hudomju / android-swipe-to-dismiss-undo

Android swipe-to-dismiss-undo library and sample code
MIT License
239 stars 84 forks source link

Update README.md #24

Closed giorizzotti closed 8 years ago

giorizzotti commented 8 years ago

Without this implementation of the addOnItemTouchListener, the swype on the Recyclerview doesn't works. Furthermore, the two additions on the onDismiss method, let the Recyclerview works better on dismiss event.

hudomju commented 8 years ago

Thanks for mentioning that these two method calls are missing in the README:

adapter.notifyItemRemoved(position); adapter.notifyItemRangeChanged(position, adapter.getItemCount());

I will add commit those changes instead of merging your pull request because there is an error in the SwipeableItemClickListener with an override of the metohd: onRequestDisallowInterceptTouchEvent

Again, thanks a lot for your contribution!