|
|
|
@ -218,7 +218,7 @@ class CaldavManualSortTaskAdapterTest : InjectingTestCase() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun move(from: Int, to: Int, indent: Int = 0) = runBlocking {
|
|
|
|
private fun move(from: Int, to: Int, indent: Int = 0) = runBlocking {
|
|
|
|
tasks.addAll(taskDao.fetchTasks { getQuery(preferences, filter, it) })
|
|
|
|
tasks.addAll(taskDao.fetchTasks { getQuery(preferences, filter) })
|
|
|
|
val adjustedTo = if (from < to) to + 1 else to // match DragAndDropRecyclerAdapter behavior
|
|
|
|
val adjustedTo = if (from < to) to + 1 else to // match DragAndDropRecyclerAdapter behavior
|
|
|
|
adapter.moved(from, adjustedTo, indent)
|
|
|
|
adapter.moved(from, adjustedTo, indent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|