Skip to content

Commit

Permalink
fix: #399 修复setNoMoreData异常
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Nov 3, 2023
1 parent 2466a27 commit 8479c5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Module 的 build.gradle 添加依赖框架

```groovy
dependencies {
implementation 'com.github.liangjingkanji:BRV:1.5.4'
implementation 'com.github.liangjingkanji:BRV:1.5.5'
}
```

Expand Down
5 changes: 1 addition & 4 deletions brv/src/main/java/com/drake/brv/PageRefreshLayout.kt
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,8 @@ open class PageRefreshLayout : SmartRefreshLayout, OnRefreshLoadMoreListener {
return this
}

// 解决在Activity的onAttachedToWindow未调用时SmartRefreshLayout下拉刷新立即完成导致的循环调用堆栈溢出
private var currentNoMoreData: Boolean? = null
override fun setNoMoreData(noMoreData: Boolean): RefreshLayout {
if (currentNoMoreData != noMoreData) {
currentNoMoreData = noMoreData
if (mRefreshFooter != null && mRefreshContent != null) {
super.setNoMoreData(noMoreData)
}
return this
Expand Down
3 changes: 3 additions & 0 deletions docs/updates.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.5.5
- fix: #399 修复setNoMoreData异常

## 1.5.4
- fix: #397 禁止头脚布局被拖拽移动

Expand Down

0 comments on commit 8479c5d

Please sign in to comment.