From f572c0574b0f6d3ce6e24970826ddb6e5f4f9173 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 22 Aug 2019 12:37:14 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/bookinfo/BookInfoActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) 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? {