From d40cc7691fba056f6eb850c6d1cc49010d36be0f Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 24 Jan 2020 23:16:54 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt | 2 +- .../io/legado/app/ui/book/read/page/delegate/PageDelegate.kt | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index 5a57dbdd6..02c8e409b 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -119,7 +119,7 @@ class PageView(context: Context, attrs: AttributeSet) : prevPage?.scrollToBottom() } } - pageDelegate?.onPageUp() + callBack?.screenOffTimerStart() } fun moveToPrevPage(noAnim: Boolean = true) { diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt index db1250c3d..e5ccf1b65 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt @@ -215,9 +215,6 @@ abstract class PageDelegate(protected val pageView: PageView) { open fun onScroll() {//移动contentView, slidePage } - open fun onPageUp() { - } - abstract fun onScroll( e1: MotionEvent, e2: MotionEvent,