Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ class ProfileListFragment : Fragment(R.layout.layout_profile_list) {

override fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder) {
super.clearView(recyclerView, viewHolder)
adapter.endDrag()
// ItemTouchHelper may call this while the list is laying out the detached row. Finishing the
// drag's selection notifies the rows, which RecyclerView only allows after the layout.
recyclerView.post { adapter.endDrag() }
}
}).also { it.attachToRecyclerView(list) }
}
Expand Down