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 402666168..041ce7025 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 @@ -259,7 +259,11 @@ class PageView(context: Context) : FrameLayout(context) { } fun selectStartMoveIndex(relativePage: Int, lineIndex: Int, charIndex: Int) { - binding.contentTextView.selectStartMoveIndex(relativePage, lineIndex, charIndex) + try { + binding.contentTextView.selectStartMoveIndex(relativePage, lineIndex, charIndex) + } catch (e: Exception) { + print("selectStartMoveIndex($relativePage, $lineIndex, $charIndex)") + } } fun selectEndMove(x: Float, y: Float) { @@ -267,7 +271,11 @@ class PageView(context: Context) : FrameLayout(context) { } fun selectEndMoveIndex(relativePage: Int, lineIndex: Int, charIndex: Int) { - binding.contentTextView.selectEndMoveIndex(relativePage, lineIndex, charIndex) + try { + binding.contentTextView.selectEndMoveIndex(relativePage, lineIndex, charIndex) + } catch (e: Exception) { + print("selectEndMoveIndex($relativePage, $lineIndex, $charIndex)") + } } fun cancelSelect() {