Fixed
Status Update
Comments
ni...@google.com <ni...@google.com> #2
The same can probably be said of other PagingDataDiffer
functions such as retry
, peek
, snapshot
, etc.
du...@google.com <du...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 556cea58864c22d095a179989b0921e003ea540c
Author: Dustin Lam <dustinlam@google.com>
Date: Mon Nov 02 21:42:39 2020
Add .peek, .snapshot, .retry and .refresh to LazyPagingItems
Relnote: "Added .peek(), .snapshot(), .retry() and .refresh() methods to
LazyPagingItems which expose the same functionality available in
AsyncPagingDataDiffer / PagingDataAdapter"
Fixes: 172041660
Test: ./gradlew paging:paging-compose:cC
Change-Id: Iddfe8a8dc9339bf4aff86f562b94eabdf8f92056
M paging/compose/api/current.txt
M paging/compose/api/public_plus_experimental_current.txt
M paging/compose/api/restricted_current.txt
M paging/compose/src/main/java/androidx/paging/compose/LazyPagingItems.kt
https://android-review.googlesource.com/1484840
Branch: androidx-master-dev
commit 556cea58864c22d095a179989b0921e003ea540c
Author: Dustin Lam <dustinlam@google.com>
Date: Mon Nov 02 21:42:39 2020
Add .peek, .snapshot, .retry and .refresh to LazyPagingItems
Relnote: "Added .peek(), .snapshot(), .retry() and .refresh() methods to
LazyPagingItems which expose the same functionality available in
AsyncPagingDataDiffer / PagingDataAdapter"
Fixes: 172041660
Test: ./gradlew paging:paging-compose:cC
Change-Id: Iddfe8a8dc9339bf4aff86f562b94eabdf8f92056
M paging/compose/api/current.txt
M paging/compose/api/public_plus_experimental_current.txt
M paging/compose/api/restricted_current.txt
M paging/compose/src/main/java/androidx/paging/compose/LazyPagingItems.kt
Description
Component used: androidx.paging:paging-compose Version used: 1.0.0-alpha01 Devices/Android versions reproduced on: Google Pixel 5 (API 30)
PagingDataAdapter
exposes arefresh
function which interally calls through toAsyncPagingDataDiffer#refresh
. This is useful for scenarios like a swipe-to-refresh on a paged list screen, or for some kind of retry UI when regaining connectivity on a paged list screen that initially failed.It would be great if
LazyPagingItems
(which uses aPagingDataDiffer
internally) could expose this function as well.