Add back drag listeners!
This commit is contained in:
parent
87a5ef5278
commit
87d845c137
3 changed files with 8 additions and 2 deletions
|
@ -33,6 +33,10 @@ abstract class BaseMusicAdapter<Type>(
|
|||
val placeholderBig by lazy { resources.getBiggerPlaceholder(textColor) }
|
||||
open val cornerRadius by lazy { resources.getDimension(com.simplemobiletools.commons.R.dimen.rounded_corner_radius_small).toInt() }
|
||||
|
||||
init {
|
||||
setupDragListener(true)
|
||||
}
|
||||
|
||||
override fun getItemCount() = items.size
|
||||
|
||||
override fun getSelectableItemCount() = items.size
|
||||
|
|
|
@ -24,6 +24,10 @@ class ExcludedFoldersAdapter(
|
|||
|
||||
private val config = activity.config
|
||||
|
||||
init {
|
||||
setupDragListener(true)
|
||||
}
|
||||
|
||||
override fun getActionMenuId() = com.simplemobiletools.commons.R.menu.cab_remove_only
|
||||
|
||||
override fun prepareActionMode(menu: Menu) {}
|
||||
|
|
|
@ -42,8 +42,6 @@ class TracksAdapter(
|
|||
private var startReorderDragListener: StartReorderDragListener
|
||||
|
||||
init {
|
||||
setupDragListener(true)
|
||||
|
||||
touchHelper = ItemTouchHelper(ItemMoveCallback(this))
|
||||
touchHelper!!.attachToRecyclerView(recyclerView)
|
||||
|
||||
|
|
Loading…
Reference in a new issue