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