From 4247a573e02de9200c0b54b3fdd3d12c5400eabd Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Sep 2019 20:21:46 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/widget/page/delegate/PageDelegate.kt | 4 +++- app/src/main/res/layout/view_book_page.xml | 3 ++- 2 files changed, 5 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 4e21d5bf5..1017b2314 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 @@ -188,7 +188,9 @@ abstract class PageDelegate(protected val pageView: PageView) { if (event.action == MotionEvent.ACTION_DOWN) { curPage?.let { it.contentTextView()?.let { contentTextView -> - contentTextView.setTextIsSelectable(true) + if (!contentTextView.isTextSelectable) { + contentTextView.setTextIsSelectable(true) + } atTop = contentTextView.atTop() atBottom = contentTextView.atBottom() } diff --git a/app/src/main/res/layout/view_book_page.xml b/app/src/main/res/layout/view_book_page.xml index 59784756f..eb27614ad 100644 --- a/app/src/main/res/layout/view_book_page.xml +++ b/app/src/main/res/layout/view_book_page.xml @@ -32,7 +32,8 @@ android:id="@+id/content_text_view" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_weight="1" /> + android:layout_weight="1" + android:textIsSelectable="true" />