Skip to content

Commit

Permalink
Fix issue #1067
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatovital committed Nov 12, 2020
1 parent afd15f7 commit 2b096fa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ class TransactionListFragment : SafeOverviewBaseFragment<FragmentTransactionList

binding.transactions.addOnScrollListener(object : RecyclerView.OnScrollListener() {
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
val firstVisibleItem = (binding.transactions.layoutManager as LinearLayoutManager).findFirstVisibleItemPosition()
reload = firstVisibleItem <= 1
if (lifecycle.currentState.isAtLeast(Lifecycle.State.STARTED)) {
val firstVisibleItem = (binding.transactions.layoutManager as LinearLayoutManager).findFirstVisibleItemPosition()
reload = firstVisibleItem <= 1
}
}
})

Expand Down

0 comments on commit 2b096fa

Please sign in to comment.