优化
This commit is contained in:
@@ -76,10 +76,12 @@ class SearchContentActivity :
|
|||||||
|
|
||||||
override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
|
override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
|
||||||
if (ev.action == MotionEvent.ACTION_DOWN) {
|
if (ev.action == MotionEvent.ACTION_DOWN) {
|
||||||
currentFocus?.let {
|
searchView.post {
|
||||||
if (it is EditText) {
|
currentFocus?.let {
|
||||||
it.clearFocus()
|
if (it is EditText) {
|
||||||
it.hideSoftInput()
|
it.clearFocus()
|
||||||
|
it.hideSoftInput()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user