Adapter drag support for grid view type
This commit is contained in:
parent
8aa0019ceb
commit
8f05285188
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class ContactsAdapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableDrag) {
|
if (enableDrag) {
|
||||||
touchHelper = ItemTouchHelper(ItemMoveCallback(this))
|
touchHelper = ItemTouchHelper(ItemMoveCallback(this, viewType == VIEW_TYPE_GRID))
|
||||||
touchHelper!!.attachToRecyclerView(recyclerView)
|
touchHelper!!.attachToRecyclerView(recyclerView)
|
||||||
|
|
||||||
startReorderDragListener = object : StartReorderDragListener {
|
startReorderDragListener = object : StartReorderDragListener {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue