Skip to content

Commit

Permalink
add loading force state
Browse files Browse the repository at this point in the history
  • Loading branch information
luhaoaimama1 committed Apr 13, 2020
1 parent e40e883 commit 36a83d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ open class LoadMoreAdapter<T>(context: Context) : ScrollToAdapter<T>(context) {
loadingForce()
}

private fun loadingForce() {
fun loadingForce() {
isLoading.set(true)
addLoadData()
loadOnScrollListener?.onLoading()
Expand All @@ -103,7 +103,7 @@ open class LoadMoreAdapter<T>(context: Context) : ScrollToAdapter<T>(context) {
} else QuickConfig.d("非loading状态")
}

private fun loadMoreCompleteForce() {
fun loadMoreCompleteForce() {
removeLoadData()
loadOnScrollListener?.complete()
isLoading.set(false)
Expand All @@ -116,7 +116,7 @@ open class LoadMoreAdapter<T>(context: Context) : ScrollToAdapter<T>(context) {
} else QuickConfig.d("非loading状态")
}

private fun loadMoreFailForce() {
fun loadMoreFailForce() {
addLoadData()
loadOnScrollListener?.fail()
isLoading.set(false)
Expand Down

0 comments on commit 36a83d4

Please sign in to comment.