|
|
|
@ -16,6 +16,7 @@ import io.legado.app.base.VMBaseActivity |
|
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
|
import io.legado.app.data.entities.SearchKeyword |
|
|
|
|
import io.legado.app.data.entities.SearchShow |
|
|
|
|
import io.legado.app.help.IntentDataHelp |
|
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
|
import io.legado.app.lib.theme.primaryTextColor |
|
|
|
|
import io.legado.app.ui.book.info.BookInfoActivity |
|
|
|
@ -223,8 +224,11 @@ class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_se |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun showBookInfo(url: String) { |
|
|
|
|
startActivity<BookInfoActivity>(Pair("bookUrl", url)) |
|
|
|
|
override fun showBookInfo(book: Book) { |
|
|
|
|
startActivity<BookInfoActivity>( |
|
|
|
|
Pair("bookUrl", book.bookUrl), |
|
|
|
|
Pair("key", IntentDataHelp.putData(book)) |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun searchHistory(key: String) { |
|
|
|
|