Skip to content

Commit

Permalink
Allow keeping track of all pending moves
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Jul 10, 2024
1 parent 30b75c9 commit ffaec39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ffaec39

Please sign in to comment.