pref: 搜索页输入关键词后自动收起键盘

This commit is contained in:
HuanChengFly 2020-11-14 15:51:51 +08:00
parent a38ff0a6c3
commit 0ca58e82f2
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class NewSearchActivity : BaseActivity(), TabLayout.OnTabSelectedListener {
recyclerView.adapter = delegateAdapter
editText.setOnEditorActionListener { v, actionId, _ ->
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
KeyboardUtil.hideKeyboard(v)
keyword = v.text.toString()
return@setOnEditorActionListener true
}