Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 89b0824b7a41492ae8b0d55d754d2a11cc21d68a
Author: Clara Fok <clarafok@google.com>
Date: Thu Jul 11 13:38:48 2024
Recover from interrupted prefetch
AsyncPagingDataDiffer calculates the transformAnchorIndex and sends an access hint on that index after presenting the new list. This ensure prefetch distance will be fulfilled.
Bug: 352586078
Test: ./gradlew paging:paging-runtime:cC
Relnote: "Fix unable to trigger more loads when refreshing while scrolling"
Change-Id: I60ca5c23e01c2ff28d120d10ae9b28eda57fac50
M paging/paging-runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.kt
M paging/paging-runtime/src/main/java/androidx/paging/AsyncPagingDataDiffer.kt
https://android-review.googlesource.com/3169156
Branch: androidx-main
commit 89b0824b7a41492ae8b0d55d754d2a11cc21d68a
Author: Clara Fok <clarafok@google.com>
Date: Thu Jul 11 13:38:48 2024
Recover from interrupted prefetch
AsyncPagingDataDiffer calculates the transformAnchorIndex and sends an access hint on that index after presenting the new list. This ensure prefetch distance will be fulfilled.
Bug: 352586078
Test: ./gradlew paging:paging-runtime:cC
Relnote: "Fix unable to trigger more loads when refreshing while scrolling"
Change-Id: I60ca5c23e01c2ff28d120d10ae9b28eda57fac50
M paging/paging-runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.kt
M paging/paging-runtime/src/main/java/androidx/paging/AsyncPagingDataDiffer.kt
cl...@google.com <cl...@google.com> #3
Fixed internally and will be available in paging 3.3.1
Description
However, in the rare case where the latest scroll position matches the last items of the newly refreshed list, there is no more scrollable distance. Without scrolling, RV does not trigger any bind/item access, and thus prefetch does not happen.