Skip to content

Conversation

@dlam
Copy link
Collaborator

@dlam dlam commented Apr 13, 2020

Will need to wait for this fix to land: https://android-review.googlesource.com/c/platform/frameworks/support/+/1285582

Btw: withTransaction already dispatches on the room threadpool, so no need for Dispatchers.IO

I might have incorrectly given you this check last time: state.pages.lastOrNull { it.data.isNotEmpty() }, as it filters out the last page which has the nextKey correctly set to null. This was causing an infinite-loop of using the second last page's next key to invalidate and load the empty last page over and over again

@florina-muntenescu florina-muntenescu force-pushed the step4/database branch 2 times, most recently from 1265543 to cca3f30 Compare April 15, 2020 18:58
@dlam dlam closed this Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant