diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt index 30cb13b18..3572a7a79 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt @@ -334,13 +334,9 @@ class SearchActivity : VMBaseActivity - searchBook?.let { - startActivity { - putExtra("name", it.name) - putExtra("author", it.author) - } - } + startActivity { + putExtra("name", name) + putExtra("author", author) } } @@ -348,10 +344,7 @@ class SearchActivity : VMBaseActivity { - putExtra("name", book.name) - putExtra("author", book.author) - } + showBookInfo(book.name, book.author) } /**