优化
This commit is contained in:
@@ -76,6 +76,7 @@ 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) {
|
||||||
|
searchView.post {
|
||||||
currentFocus?.let {
|
currentFocus?.let {
|
||||||
if (it is EditText) {
|
if (it is EditText) {
|
||||||
it.clearFocus()
|
it.clearFocus()
|
||||||
@@ -83,6 +84,7 @@ class SearchContentActivity :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return super.dispatchTouchEvent(ev)
|
return super.dispatchTouchEvent(ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user