diff --git a/LRecyclerview_library/src/main/java/com/github/jdsjlzx/recyclerview/LRecyclerView.java b/LRecyclerview_library/src/main/java/com/github/jdsjlzx/recyclerview/LRecyclerView.java index dd0a40b..cfb5473 100644 --- a/LRecyclerview_library/src/main/java/com/github/jdsjlzx/recyclerview/LRecyclerView.java +++ b/LRecyclerview_library/src/main/java/com/github/jdsjlzx/recyclerview/LRecyclerView.java @@ -310,8 +310,8 @@ public void setRefreshing(boolean refreshing) { mLScrollListener.onRefresh(); } } - public void setForceRefresh(boolean isForceToRefresh) { - if (isForceToRefresh && pullRefreshEnabled && mLScrollListener != null) { + public void forceToRefresh() { + if (pullRefreshEnabled && mLScrollListener != null) { mRefreshHeader.setState(ArrowRefreshHeader.STATE_REFRESHING); mRefreshHeader.onMove(mRefreshHeaderHeight); mLScrollListener.onRefresh();