allow horizontal dragging too

This commit is contained in:
tibbi 2020-11-07 23:38:15 +01:00
parent faebe19b53
commit 10b4b81ab0
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.31.27'
implementation 'com.simplemobiletools:commons:5.31.28'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -37,7 +37,7 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: ArrayList<AppLau
init {
setupDragListener(true)
val touchHelper = ItemTouchHelper(ItemMoveCallback(this))
val touchHelper = ItemTouchHelper(ItemMoveCallback(this, true))
touchHelper.attachToRecyclerView(recyclerView)
startReorderDragListener = object : StartReorderDragListener {