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 { } else {
throw NoStackTraceException("已是最新版本") throw NoStackTraceException("已是最新版本")
} }
}.onSuccess { }.timeout(10000)
callback.invoke(it[0], it[1], it[2], it[3]) .onSuccess {
}.onError { callback.invoke(it[0], it[1], it[2], it[3])
if (showErrorMsg) { }.onError {
appCtx.toastOnUi("检测更新\n${it.localizedMessage}") if (showErrorMsg) {
appCtx.toastOnUi("检测更新\n${it.localizedMessage}")
}
} }
}
} }
} }
Loading…
Cancel
Save