pull/34/head
kunfei 5 years ago
parent a3a86fb044
commit 0dffb04e35
  1. 1
      app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt
  2. 6
      app/src/main/java/io/legado/app/ui/widget/page/PageView.kt

@ -145,5 +145,6 @@ class ContentView : FrameLayout {
interface CallBack {
fun scrollToLine(line: Int)
fun scrollToLast()
}
}

@ -228,6 +228,12 @@ class PageView(context: Context, attrs: AttributeSet) :
}
}
override fun scrollToLast() {
callback?.textChapter()?.let {
callback?.setPageIndex(it.lastIndex())
}
}
interface CallBack {
fun chapterSize(): Int
fun durChapterIndex(): Int

Loading…
Cancel
Save