From f41663e53a1fb68e995eddd80a2730ba50a09788 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Dec 2019 11:50:06 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/book/info/edit/BookInfoEditActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/edit/BookInfoEditActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/edit/BookInfoEditActivity.kt index 297951b40..a4e420af1 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/edit/BookInfoEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/edit/BookInfoEditActivity.kt @@ -67,7 +67,7 @@ class BookInfoEditActivity : } private fun saveData() { - viewModel.bookData.value?.let { book -> + viewModel.book?.let { book -> book.name = tie_book_name.text?.toString() ?: "" book.author = tie_book_author.text?.toString() ?: "" val customCoverUrl = tie_cover_url.text?.toString()