|
|
|
@ -12,9 +12,11 @@ import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.R |
|
|
|
|
import io.legado.app.base.VMBaseFragment |
|
|
|
|
import io.legado.app.constant.Bus |
|
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
|
import io.legado.app.data.entities.BookChapter |
|
|
|
|
import io.legado.app.utils.getViewModelOfActivity |
|
|
|
|
import io.legado.app.utils.postEvent |
|
|
|
|
import kotlinx.android.synthetic.main.fragment_chapter_list.* |
|
|
|
|
import org.jetbrains.anko.sdk27.listeners.onClick |
|
|
|
|
|
|
|
|
@ -81,7 +83,8 @@ class ChapterListFragment : VMBaseFragment<ChapterListViewModel>(R.layout.fragme |
|
|
|
|
return durChapterIndex |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun openChapter() { |
|
|
|
|
|
|
|
|
|
override fun openChapter(bookChapter: BookChapter) { |
|
|
|
|
postEvent(Bus.OPEN_CHAPTER, bookChapter) |
|
|
|
|
activity?.finish() |
|
|
|
|
} |
|
|
|
|
} |