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()