Commit 0c4d5d0
Prevent SwipeRefreshLayout from intercepting while list can still scroll up
This PR fixes an issue where pull-to-refresh could trigger while the files list
was not at the top, causing an unexpected refresh and interrupting scrolling.
Implementation:
- Set a ChildScrollUpCallback on SwipeRefreshLayout to return true when the
RecyclerView can still scroll up (canScrollVertically(-1) == true). This
prevents SwipeRefreshLayout from intercepting gestures mid-list.
Signed-off-by: chagaiB <[email protected]>1 parent 975150c commit 0c4d5d0
File tree
1 file changed
+6
-0
lines changed- app/src/main/java/com/owncloud/android/ui/fragment
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
0 commit comments