优化
This commit is contained in:
@@ -211,13 +211,12 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
|
|||||||
ReadBook.resetData(book)
|
ReadBook.resetData(book)
|
||||||
ReadBook.upMsg(null)
|
ReadBook.upMsg(null)
|
||||||
ReadBook.loadContent(resetPageOffset = true)
|
ReadBook.loadContent(resetPageOffset = true)
|
||||||
}.timeout(60000)
|
}.onError {
|
||||||
.onError {
|
context.toastOnUi("换源失败\n${it.localizedMessage}")
|
||||||
context.toastOnUi("换源失败\n${it.localizedMessage}")
|
ReadBook.upMsg(null)
|
||||||
ReadBook.upMsg(null)
|
}.onFinally {
|
||||||
}.onFinally {
|
postEvent(EventBus.SOURCE_CHANGED, book.bookUrl)
|
||||||
postEvent(EventBus.SOURCE_CHANGED, book.bookUrl)
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user