Adapter drag support for grid view type

This commit is contained in:
merkost 2023-07-19 17:01:13 +10:00
parent 8aa0019ceb
commit 8f05285188

View File

@ -81,7 +81,7 @@ class ContactsAdapter(
}
if (enableDrag) {
touchHelper = ItemTouchHelper(ItemMoveCallback(this))
touchHelper = ItemTouchHelper(ItemMoveCallback(this, viewType == VIEW_TYPE_GRID))
touchHelper!!.attachToRecyclerView(recyclerView)
startReorderDragListener = object : StartReorderDragListener {