Skip to content

Commit

Permalink
#612 Fixed bug when hiding read posts -- if all posts on first page w…
Browse files Browse the repository at this point in the history
…ere read, no more would be downloaded
  • Loading branch information
QuantumBadger committed Sep 15, 2018
1 parent d22fad3 commit 2200f2c
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -439,8 +439,7 @@ private void onLoadMoreItemsCheck() {

final LinearLayoutManager layoutManager = (LinearLayoutManager)mRecyclerView.getLayoutManager();

if(mPostListingManager.getPostCount() > 0
&& (layoutManager.getItemCount() - layoutManager.findLastVisibleItemPosition() < 20
if((layoutManager.getItemCount() - layoutManager.findLastVisibleItemPosition() < 20
&& (mPostCountLimit <= 0 || mPostRefreshCount.get() > 0)
|| (mPreviousFirstVisibleItemPosition != null
&& layoutManager.getItemCount() <= mPreviousFirstVisibleItemPosition))) {
Expand Down

0 comments on commit 2200f2c

Please sign in to comment.