Skip to content

Commit

Permalink
+ 支持启用和关闭PageRefreshLayout的缺省页功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Jan 13, 2020
1 parent b5293e1 commit 25bf82d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ allprojects {
module 的 build.gradle

```groovy
implementation 'com.github.liangjingkanji:BRV:1.2.9'
implementation 'com.github.liangjingkanji:BRV:1.2.10'
```


Expand Down
10 changes: 6 additions & 4 deletions brv/src/main/java/com/drake/brv/PageRefreshLayout.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ open class PageRefreshLayout : SmartRefreshLayout, OnRefreshLoadMoreListener {
setEnableLoadMore(value)
}

if (value && state == null && finishInflate) {
replaceStateLayout()
} else {
showContent()
if (finishInflate) {
if (value && state == null) {
replaceStateLayout()
} else {
showContent()
}
}

field = value
Expand Down

0 comments on commit 25bf82d

Please sign in to comment.