pull/34/head
kunfei 5 years ago
parent e13c0e715a
commit 76478bc1b8
  1. 2
      app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt
  2. 4
      app/src/main/java/io/legado/app/ui/widget/page/PageView.kt

@ -7,8 +7,6 @@ interface DataSource {
fun setPageIndex(pageIndex: Int)
fun isPrepared(): Boolean
fun getChapterPosition(): Int
fun getChapter(position: Int): TextChapter?

@ -48,10 +48,6 @@ class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, att
callback?.setPageIndex(pageIndex)
}
override fun isPrepared(): Boolean {
return true
}
override fun getChapterPosition(): Int {
return callback?.durChapterIndex() ?: 0
}

Loading…
Cancel
Save