pull/475/head
gedoor 4 years ago
parent 680e2cb4c8
commit d2300decc7
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/page/PageView.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()
}

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

Loading…
Cancel
Save