Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #61 from papjohn24/patch-1
Browse files Browse the repository at this point in the history
Update RealmRecyclerView.java
  • Loading branch information
thorbenprimke authored Jul 2, 2016
2 parents 2ad4938 + e503665 commit 682348d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ public void smoothScrollToPosition(int position) {
public void scrollToPosition(int position) {
recyclerView.scrollToPosition(position);
}

//
// Expose public RecycleView

public RecyclerView getRecycleView(){
return recyclerView;
}

//
// Pull-to-refresh
Expand All @@ -385,6 +392,12 @@ public void resetHasLoadMoreFired() {
hasLoadMoreFired = false;
}

// Expose method to change the preloaded items
public void setBufferItems(int bufferItems){
if (bufferItems <= 0) bufferItems = 0;
this.bufferItems = bufferItems;
}

private SwipeRefreshLayout.OnRefreshListener recyclerViewRefreshListener =
new SwipeRefreshLayout.OnRefreshListener() {
@Override
Expand Down

0 comments on commit 682348d

Please sign in to comment.