From ed8d88ffd9e0bd0d5bf063a4ed0431832ca5828a Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 4 Oct 2022 18:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/widget/text/ScrollTextView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt b/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt index b523a260d..8d0bb8362 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt @@ -2,6 +2,7 @@ package io.legado.app.ui.widget.text import android.annotation.SuppressLint import android.content.Context +import android.text.method.LinkMovementMethod import android.util.AttributeSet import android.view.GestureDetector import android.view.MotionEvent @@ -79,6 +80,7 @@ class ScrollTextView(context: Context, attrs: AttributeSet?) : mTouchSlop = vc.scaledTouchSlop mMinFlingVelocity = vc.scaledMinimumFlingVelocity mMaxFlingVelocity = vc.scaledMaximumFlingVelocity + movementMethod = LinkMovementMethod.getInstance() } override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {