Adapter drag support for grid

This commit is contained in:
merkost 2023-07-11 12:29:01 +10:00
parent e17555c977
commit e8bee1445a

View File

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