From 1d70e381a8ea1f5907a435660a439e904c08b09b Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Sep 2019 00:19:57 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/widget/page/delegate/PageDelegate.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt b/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt index 996d0bfc2..17918285e 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt @@ -270,8 +270,10 @@ abstract class PageDelegate(protected val pageView: PageView) { distanceX: Float, distanceY: Float ): Boolean { - curPage?.contentTextView()?.setTextIsSelectable(false) - curPage?.contentTextView()?.movementMethod = scrollingMovementMethod + curPage?.contentTextView()?.let { + it.setTextIsSelectable(false) + it.movementMethod = scrollingMovementMethod + } if (pageView.isScrollDelegate()) { curPage?.dispatchTouchEvent(e2) return true