From 79303b7b91e1c871b3ecf6a83cdd9e68a3490128 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Sep 2022 23:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E6=BA=90=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=A1=86=E7=9A=84=E6=9C=80=E5=A4=A7=E8=A1=8C=E6=95=B0,?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=88=B0=E5=85=B6=E4=BB=96=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E6=9B=B4=E5=AE=B9=E6=98=93,=E8=BF=98=E6=9C=89?= =?UTF-8?q?=E7=82=B9=E9=97=AE=E9=A2=98,=E5=85=88=E6=94=B9=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/widget/text/ScrollMultiAutoCompleteTextView.kt | 2 +- app/src/main/res/layout/item_source_edit.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/text/ScrollMultiAutoCompleteTextView.kt b/app/src/main/java/io/legado/app/ui/widget/text/ScrollMultiAutoCompleteTextView.kt index a8731d764..8d8c3fe93 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/ScrollMultiAutoCompleteTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/ScrollMultiAutoCompleteTextView.kt @@ -36,7 +36,7 @@ open class ScrollMultiAutoCompleteTextView @JvmOverloads constructor( override fun dispatchTouchEvent(event: MotionEvent): Boolean { if (event.action == MotionEvent.ACTION_DOWN) { //如果是新的按下事件,则对mBottomFlag重新初始化 - mBottomFlag = false + mBottomFlag = lineCount <= maxLines } return super.dispatchTouchEvent(event) } diff --git a/app/src/main/res/layout/item_source_edit.xml b/app/src/main/res/layout/item_source_edit.xml index 6f05121f0..cd14a6fe4 100644 --- a/app/src/main/res/layout/item_source_edit.xml +++ b/app/src/main/res/layout/item_source_edit.xml @@ -9,7 +9,6 @@ android:id="@+id/editText" android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="textMultiLine" - android:maxLines="12" /> + android:inputType="textMultiLine" /> \ No newline at end of file