mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -2,6 +2,7 @@ package io.legado.app.ui.widget.text
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.view.MotionEvent
|
||||
@@ -28,6 +29,9 @@ class AutoCompleteTextView @JvmOverloads constructor(
|
||||
|
||||
init {
|
||||
applyTint(context.accentColor)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
|
||||
isLocalePreferredLineHeightForMinimumUsed = false
|
||||
}
|
||||
}
|
||||
|
||||
override fun enoughToFilter(): Boolean {
|
||||
|
||||
@@ -2,6 +2,7 @@ package io.legado.app.ui.widget.text
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import android.view.GestureDetector
|
||||
import android.view.MotionEvent
|
||||
@@ -80,6 +81,9 @@ open class ScrollMultiAutoCompleteTextView @JvmOverloads constructor(
|
||||
mTouchSlop = vc.scaledTouchSlop
|
||||
mMinFlingVelocity = vc.scaledMinimumFlingVelocity
|
||||
mMaxFlingVelocity = vc.scaledMaximumFlingVelocity
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
|
||||
isLocalePreferredLineHeightForMinimumUsed = false
|
||||
}
|
||||
}
|
||||
|
||||
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
||||
|
||||
Reference in New Issue
Block a user