Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Always create new PagingSource on Android. #33

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

ilmooo
Copy link
Contributor

@ilmooo ilmooo commented Jan 31, 2023

Always create new PagingSource on Android from pagingSourceFactory. This is required by Android Paging library. Fixes crash caused by common refresh logic changes in 0.6.0 version.

Crash description when refreshing pager with 0.6.0 version of library:

An instance of PagingSource was re-used when Pager expected to create a newinstance. Ensure that the pagingSourceFactory passed to Pager always returns a new instance of PagingSource.

- Fixes crash when refreshing pager
@kuuuurt kuuuurt merged commit 7e3c1f6 into kuuuurt:main Jan 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants