From 071e7c424892e993f70556903a176ffe1a9695b4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 5 Nov 2019 14:25:04 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 4144bee78..cc4032a00 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 @@ -51,11 +51,11 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { } private fun initBook(book: Book) { + this.book = book + titleDate.postValue(book.name) durChapterIndex = book.durChapterIndex durPageIndex = book.durChapterPos isLocalBook = book.origin == BookType.local - this.book = book - titleDate.postValue(book.name) App.db.bookSourceDao().getBookSource(book.origin)?.let { webBook = WebBook(it) }