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) } }