Fixed
Status Update
Comments
je...@google.com <je...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
vi...@gmail.com <vi...@gmail.com> #3
Comment has been deleted.
Description
Hierarchy:
Reproduction path:
1. Use this hierarchy:
<swiperefreshlayout>
<viewpager2 />
<swiperefreshlayout>
2. Set an adapter on VP2
3. Swipe left and/or right a few times. When the y distance between the swipe start and the current touch location is > touchSlop, the bug is triggered.
Workaround:
API >= 21: setNestedScrollingEnabled(true) on the direct child of the SRL
API < 21: Let the direct child of SRL implement NestedScrollingChild, and have it set isNestedScrollingEnabled to true. See attached SwipeRefreshChildLayout.kt as a reference implementation, which can be wrapped around the existing child of SRL.