pull/1352/head
gedoor 3 years ago
parent 1288388682
commit 6dd279b4da
  1. 13
      app/src/main/java/io/legado/app/help/AppUpdate.kt

@ -40,13 +40,14 @@ object AppUpdate {
} else {
throw NoStackTraceException("已是最新版本")
}
}.onSuccess {
callback.invoke(it[0], it[1], it[2], it[3])
}.onError {
if (showErrorMsg) {
appCtx.toastOnUi("检测更新\n${it.localizedMessage}")
}.timeout(10000)
.onSuccess {
callback.invoke(it[0], it[1], it[2], it[3])
}.onError {
if (showErrorMsg) {
appCtx.toastOnUi("检测更新\n${it.localizedMessage}")
}
}
}
}
}
Loading…
Cancel
Save