Skip to content

Commit 92accfb

Browse files
author
Oscar
committed
fix
1 parent b5b328f commit 92accfb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

BaseAdapter/src/main/java/com/othershe/baseadapter/base/BaseAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
252252
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
253253
super.onScrolled(recyclerView, dx, dy);
254254
if (findLastVisibleItemPosition(layoutManager) + 1 == getItemCount()) {
255-
if (mEmptyView != null || mReloadView != null) {
255+
if (mEmptyView != null || mReloadView != null
256+
|| (mHeaderViews.size() > 0 && showHeaderView && mDatas.isEmpty())) {
256257
return;
257258
}
258259
if (isAutoLoadMore && !isAutoLoadMoreEnd) {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
**2. 添加项目依赖**
2424
``` gradle
2525
dependencies {
26-
implementation 'com.github.Othershe:RecyclerViewAdapter:1.2.4'
26+
implementation 'com.github.Othershe:RecyclerViewAdapter:1.2.5'
2727
}
2828
```
2929

0 commit comments

Comments
 (0)