android / codelab-constraint-layout

Constraint Layout Codelab
https://codelabs.developers.google.com/codelabs/constraint-layout/
Apache License 2.0
469 stars 243 forks source link

2.0.0-Beta1 version break ItemTouchHelper.Callback clearView() behaviour #63

Open brucemax opened 5 years ago

brucemax commented 5 years ago

I use recycleview in motion layout and use ItemTouchHelper.Callback clearView() method for detecting item drop event (See https://stackoverflow.com/questions/35920584/android-how-to-catch-drop-action-of-itemtouchhelper-which-is-used-with-recycle)

So from beta1 version clearView() calls every time when I cross next item :( It starts from removeAndRecycleScrapInt method in recycleview because getScrapCount() != 0

Upd: This behavior starts when I move from constraint-layout 2.0.0 alpha3 to beta1