This commit is contained in:
kunfei
2023-05-06 14:42:26 +08:00
parent 58cb296f4e
commit e3903ded3b
@@ -76,10 +76,12 @@ class SearchContentActivity :
override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
if (ev.action == MotionEvent.ACTION_DOWN) {
currentFocus?.let {
if (it is EditText) {
it.clearFocus()
it.hideSoftInput()
searchView.post {
currentFocus?.let {
if (it is EditText) {
it.clearFocus()
it.hideSoftInput()
}
}
}
}