From f729531dacaa0d6df45f7b6d01efce43f1b331b2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Sep 2019 19:57:08 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/widget/page/ContentTextView.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt b/app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt index de0027c8f..5434744db 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt @@ -81,8 +81,13 @@ class ContentTextView : AppCompatTextView { initOffsetHeight() } - override fun setText(text: CharSequence?, type: BufferType?) { - super.setText(text, type) + override fun onTextChanged( + text: CharSequence?, + start: Int, + lengthBefore: Int, + lengthAfter: Int + ) { + super.onTextChanged(text, start, lengthBefore, lengthAfter) initOffsetHeight() }