diff --git a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt index 94863261a..a387b1e0f 100644 --- a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt @@ -199,6 +199,14 @@ class BookInfoActivity : VMBaseActivity(R.layout.activity_boo rv_chapter_list.scrollToPosition(it.durChapterIndex) } } + iv_chapter_top.onClick { + rv_chapter_list.scrollToPosition(0) + } + iv_chapter_bottom.onClick { + viewModel.chapterListData.value?.let { + rv_chapter_list.scrollToPosition(it.size - 1) + } + } } override fun oldBook(): Book? {