From afeae16c31f2f63b852bd8125daf39a0a07ccebc Mon Sep 17 00:00:00 2001 From: Matthieu <24-artectrex@users.noreply.shinice.net> Date: Sat, 31 Oct 2020 22:40:05 +0100 Subject: [PATCH] Don't reset the pages to 0, but to 1 --- .../com/h/pixeldroid/fragments/feeds/AccountListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/h/pixeldroid/fragments/feeds/AccountListFragment.kt b/app/src/main/java/com/h/pixeldroid/fragments/feeds/AccountListFragment.kt index 86c851a5..6d84f7ca 100644 --- a/app/src/main/java/com/h/pixeldroid/fragments/feeds/AccountListFragment.kt +++ b/app/src/main/java/com/h/pixeldroid/fragments/feeds/AccountListFragment.kt @@ -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() }