This commit is contained in:
kunfei committed 2023-05-06 14:42:26 +08:00
1 parent 58cb296f4e
commit e3903ded3b
1 file changed
+2
@@ -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)
} }