mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Adapter drag support for grid
This commit is contained in:
@@ -58,7 +58,7 @@ class ContactsAdapter(
|
|||||||
setupDragListener(true)
|
setupDragListener(true)
|
||||||
|
|
||||||
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 {
|
||||||
|
Reference in New Issue
Block a user