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.
Always create new
PagingSource
on Android frompagingSourceFactory
. 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: