Permalink
Browse files

#612 Fixed bug when hiding read posts -- if all posts on first page w…

…ere read, no more would be downloaded
  • Loading branch information...
QuantumBadger committed Sep 15, 2018
1 parent d22fad3 commit 2200f2c4ec6592011753d124609d80fb4f8e4709
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/org/quantumbadger/redreader/fragments/PostListingFragment.java
@@ -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))) {

0 comments on commit 2200f2c

Please sign in to comment.