Malinskiy / SuperRecyclerView

Pumped up RecyclerView
2.63k stars 469 forks source link

Loading more infinity loop #96

Open Buckstabue opened 8 years ago

Buckstabue commented 8 years ago

Let's say we set numberBeforeMoreIsCalled = 5. SuperRecyclerView is initialized with 11 items, first ten of them are visible, it leads to triggering onLoadMoreListener and showing the Load More animation. If no other items are available(noMoreListener could not load more items), then animation is gone and it leads to emitting a Scroll event, this results in triggering onLoadMoreListener and it's an infinity process. Please fix it or tell how to avoid this behaviour. Thanks

abraaocaldas commented 7 years ago

I have the same problem. If the list is very short and cannot load more objects then the infinity loops occurs.