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:
parent
d0015b805c
commit
afeae16c31
@ -75,7 +75,7 @@ open class AccountListFragment : FeedFragment() {
|
|||||||
swipeRefreshLayout.setOnRefreshListener {
|
swipeRefreshLayout.setOnRefreshListener {
|
||||||
showError(show = false)
|
showError(show = false)
|
||||||
|
|
||||||
currentPage = 0
|
currentPage = 1
|
||||||
//by invalidating data, loadInitial will be called again
|
//by invalidating data, loadInitial will be called again
|
||||||
factory.liveData.value!!.invalidate()
|
factory.liveData.value!!.invalidate()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user