|
|
@ -23,9 +23,7 @@ import io.legado.app.ui.audio.AudioPlayActivity |
|
|
|
import io.legado.app.ui.book.info.BookInfoActivity |
|
|
|
import io.legado.app.ui.book.info.BookInfoActivity |
|
|
|
import io.legado.app.ui.book.read.ReadBookActivity |
|
|
|
import io.legado.app.ui.book.read.ReadBookActivity |
|
|
|
import io.legado.app.ui.main.MainViewModel |
|
|
|
import io.legado.app.ui.main.MainViewModel |
|
|
|
import io.legado.app.utils.getPrefInt |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.getViewModelOfActivity |
|
|
|
|
|
|
|
import io.legado.app.utils.observeEvent |
|
|
|
|
|
|
|
import kotlinx.android.synthetic.main.fragment_books.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_books.* |
|
|
|
import org.jetbrains.anko.startActivity |
|
|
|
import org.jetbrains.anko.startActivity |
|
|
|
import kotlin.math.max |
|
|
|
import kotlin.math.max |
|
|
@ -142,7 +140,7 @@ class BooksFragment : BaseFragment(R.layout.fragment_books), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun openBookInfo(book: Book) { |
|
|
|
override fun openBookInfo(book: Book) { |
|
|
|
context?.startActivity<BookInfoActivity>( |
|
|
|
startActivity<BookInfoActivity>( |
|
|
|
Pair("name", book.name), |
|
|
|
Pair("name", book.name), |
|
|
|
Pair("author", book.author) |
|
|
|
Pair("author", book.author) |
|
|
|
) |
|
|
|
) |
|
|
|