From 3eb413ef6fab53d722a4b68a978f5d6ff91b81a7 Mon Sep 17 00:00:00 2001 From: "chad.xiao" <740187403@qq.com> Date: Wed, 14 Nov 2018 12:19:41 +0800 Subject: [PATCH] Mvp Lce showError function bug --- README.md | 8 ++++---- .../java/chad/xiao/mvpkotlin/lce/impl/MvpLceViewImpl.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 43da07e..bca3bc5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ > 在模块的build.gradle文件中添加如下依赖: dependencies { - implementation 'com.github.ChadXiao:OkMvp:V1.0.0' + implementation 'com.github.ChadXiao:OkMvp:TAG' } @@ -37,7 +37,7 @@ com.github.ChadXiao OkMvp - V1.0.0 + TAG ## Sbt ## @@ -49,7 +49,7 @@ > 添加依赖: - libraryDependencies += "com.github.ChadXiao" % "OkMvp" % "V1.0.0" + libraryDependencies += "com.github.ChadXiao" % "OkMvp" % "TAG" ## Leiningen ## @@ -60,4 +60,4 @@ > 添加依赖 - :dependencies [[com.github.ChadXiao/OkMvp "V1.0.0"]] \ No newline at end of file + :dependencies [[com.github.ChadXiao/OkMvp "TAG"]] \ No newline at end of file diff --git a/okmvp/src/main/java/chad/xiao/mvpkotlin/lce/impl/MvpLceViewImpl.kt b/okmvp/src/main/java/chad/xiao/mvpkotlin/lce/impl/MvpLceViewImpl.kt index 2b91349..9ec4ad7 100644 --- a/okmvp/src/main/java/chad/xiao/mvpkotlin/lce/impl/MvpLceViewImpl.kt +++ b/okmvp/src/main/java/chad/xiao/mvpkotlin/lce/impl/MvpLceViewImpl.kt @@ -76,7 +76,7 @@ open class MvpLceViewImpl : MvpLceView{ } override fun showError(isPullToRefresh: Boolean) { - if (isPullToRefresh){ + if (!isPullToRefresh){ animator!!.showErrorView(loadingView!!, contentView!!, errorView!!) } }