diff --git a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/PullToRefreshUseActivity.java b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/PullToRefreshUseActivity.java index b4397c14..e0dd04a1 100644 --- a/app/src/main/java/com/chad/baserecyclerviewadapterhelper/PullToRefreshUseActivity.java +++ b/app/src/main/java/com/chad/baserecyclerviewadapterhelper/PullToRefreshUseActivity.java @@ -183,7 +183,11 @@ private void loadMore() { new Request(mNextRequestPage, new RequestCallBack() { @Override public void success(List data) { - setData(false, data); + /** + * fix https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/2400 + */ + boolean isRefresh =mNextRequestPage ==1; + setData(isRefresh, data); } @Override diff --git a/build.gradle b/build.gradle index 103aacfc..7afb913f 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.1.2' + classpath 'com.android.tools.build:gradle:3.1.4' } }