Skip to content

Commit

Permalink
Merge pull request #100 from Nikitae57/ISSUE-99-Scroll_to_doesnt_supp…
Browse files Browse the repository at this point in the history
…ort_recycler

#99: Add recycler to scrollTo constraints
  • Loading branch information
Unlimity authored Oct 13, 2023
2 parents c5844a3 + 3e00849 commit e1e38c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.widget.HorizontalScrollView
import android.widget.ListView
import android.widget.ScrollView
import androidx.core.widget.NestedScrollView
import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.ViewAction
import androidx.test.espresso.action.ScrollToAction
import androidx.test.espresso.matcher.ViewMatchers
Expand All @@ -24,6 +25,7 @@ class NestedScrollToAction : ViewAction by ScrollToAction() {
isDescendantOfA(
anyOf(
isAssignableFrom(ScrollView::class.java),
isAssignableFrom(RecyclerView::class.java),
isAssignableFrom(HorizontalScrollView::class.java),
isAssignableFrom(NestedScrollView::class.java),
isAssignableFrom(ListView::class.java)
Expand Down

0 comments on commit e1e38c6

Please sign in to comment.