From ffaec3958bbee22b04e7c8832ca8c78233a30a40 Mon Sep 17 00:00:00 2001 From: Ruben Sousa Date: Thu, 11 Jul 2024 00:46:01 +0200 Subject: [PATCH] Allow keeping track of all pending moves --- .../test/tests/scrolling/VerticalGridScrollTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/scrolling/VerticalGridScrollTest.kt b/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/scrolling/VerticalGridScrollTest.kt index 8acbbdfe..dfb09f33 100644 --- a/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/scrolling/VerticalGridScrollTest.kt +++ b/dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/scrolling/VerticalGridScrollTest.kt @@ -253,6 +253,7 @@ class VerticalGridScrollTest : DpadRecyclerViewTest() { fun testMultipleFastDifferentSpanFocusChanges() { launchFragment() onRecyclerView("Change span size lookup") { recyclerView -> + recyclerView.setSmoothScrollMaxPendingMoves(25) recyclerView.setSpanSizeLookup(object : DpadSpanSizeLookup() { override fun getSpanSize(position: Int): Int { return if (position == 0 || position.rem(spanCount + 1) == 0) {