pull/35/head
kunfei 5 years ago
parent 4e5e8c698b
commit 4e8f653f7e
  1. 2
      app/src/main/java/io/legado/app/lib/theme/view/ATEAutoCompleteTextView.kt

@ -35,8 +35,10 @@ class ATEAutoCompleteTextView : AppCompatAutoCompleteTextView {
override fun onFocusChanged(focused: Boolean, direction: Int, previouslyFocusedRect: Rect?) { override fun onFocusChanged(focused: Boolean, direction: Int, previouslyFocusedRect: Rect?) {
super.onFocusChanged(focused, direction, previouslyFocusedRect) super.onFocusChanged(focused, direction, previouslyFocusedRect)
if (focused) {
showDropDown() showDropDown()
} }
}
fun setFilterValues(values: List<String>?, delCallBack: ((value: String) -> Unit)? = null) { fun setFilterValues(values: List<String>?, delCallBack: ((value: String) -> Unit)? = null) {
this.delCallBack = delCallBack this.delCallBack = delCallBack

Loading…
Cancel
Save