From 74b69c69183afc319484e2c335d6a3c782c6f1c1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 17 Aug 2019 13:37:14 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/widget/page/ContentTextView.kt | 11 ----------- 1 file changed, 11 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 4e6c22138..788ecc77e 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 @@ -12,17 +12,6 @@ class ContentTextView : AppCompatTextView { constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) - /** - * 去除当前页无法显示的字 - * @return 去掉的字数 - */ - fun resize(): Int { - val oldContent = text - val newContent = oldContent.subSequence(0, getCharNum()) - text = newContent - return oldContent.length - newContent.length - } - /** * 获取当前页总字数 */