diff --git a/app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt b/app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt index 92b09194b..6c43b1dee 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt @@ -7,8 +7,6 @@ interface DataSource { fun setPageIndex(pageIndex: Int) - fun isPrepared(): Boolean - fun getChapterPosition(): Int fun getChapter(position: Int): TextChapter? diff --git a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt index b2481ddbe..85d7be3d1 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt @@ -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 }