From d2300decc772ed479089379c68092e51eef78910 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 11 Nov 2020 12:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/book/read/config/ClickActionConfigDialog.kt | 2 ++ app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt index ca6e14fd0..55082400e 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt @@ -49,6 +49,8 @@ class ClickActionConfigDialog : BaseDialogFragment() { actions[0] = getString(R.string.menu) actions[1] = getString(R.string.next_page) actions[2] = getString(R.string.prev_page) + actions[3] = getString(R.string.next_chapter) + actions[4] = getString(R.string.previous_chapter) initData() initViewEvent() } diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index 2cf00e902..c7f1eb4cc 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -297,6 +297,8 @@ class PageView(context: Context, attrs: AttributeSet) : 0 -> callBack.showActionMenu() 1 -> pageDelegate?.nextPageByAnim(defaultAnimationSpeed) 2 -> pageDelegate?.prevPageByAnim(defaultAnimationSpeed) + 3 -> ReadBook.moveToNextChapter(true) + 4 -> ReadBook.moveToPrevChapter(upContent = true, toLast = false) } }