From 76478bc1b8e701f0c950adbd287a407a76d963e7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 20 Sep 2019 20:13:08 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/DataSource.kt | 2 -- app/src/main/java/io/legado/app/ui/widget/page/PageView.kt | 4 ---- 2 files changed, 6 deletions(-) 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 }