Open akritkhanna opened 2 years ago
@akritkhanna Facing same issue, have you fixed it ?
@akritkhanna Facing same issue, have you fixed it ?
@baishyamridul
No, I switched to traditional approach for the pagination but this time I used BaseAdapter class with diffUtil. In that I was facing the same issue but I was able to fix it by using the extension function. yourList.toMutableList()
Let me know if this works the paging library.
I'm facing the same issue, too. But when I update the pagingConfig, using pageSize = 20, everything just gone, the pagination always work no matter how many time I refresh. Hope this will help
I'm able to populate the list and pagination is working as expected. But when I call adapter.refresh() method twice by using pull to refresh, the pagination stops working.
Please refer the below video to get the better idea about the prolem. https://www.dropbox.com/s/0k2g9mlktv5gee6/22-05-22-10-26-37.mp4?dl=0
VideoPagingSource.kt
PreClassViewModel.kt
VideosFragment.kt