1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-25 14:34:12 +01:00

Don't reset the pages to 0, but to 1

This commit is contained in:
Matthieu 2020-10-31 22:40:05 +01:00
parent d0015b805c
commit afeae16c31

View File

@ -75,7 +75,7 @@ open class AccountListFragment : FeedFragment() {
swipeRefreshLayout.setOnRefreshListener {
showError(show = false)
currentPage = 0
currentPage = 1
//by invalidating data, loadInitial will be called again
factory.liveData.value!!.invalidate()
}