From 18914f94a7e62208109622c284dbaf98d505df75 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 7 Apr 2022 16:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/ReadBookViewModel.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt index ccdf872e7..2f98e9704 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt @@ -211,13 +211,12 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { ReadBook.resetData(book) ReadBook.upMsg(null) ReadBook.loadContent(resetPageOffset = true) - }.timeout(60000) - .onError { - context.toastOnUi("换源失败\n${it.localizedMessage}") - ReadBook.upMsg(null) - }.onFinally { - postEvent(EventBus.SOURCE_CHANGED, book.bookUrl) - } + }.onError { + context.toastOnUi("换源失败\n${it.localizedMessage}") + ReadBook.upMsg(null) + }.onFinally { + postEvent(EventBus.SOURCE_CHANGED, book.bookUrl) + } } /**