pref: 搜索页输入关键词后自动收起键盘
This commit is contained in:
parent
a38ff0a6c3
commit
0ca58e82f2
|
|
@ -114,6 +114,7 @@ class NewSearchActivity : BaseActivity(), TabLayout.OnTabSelectedListener {
|
||||||
recyclerView.adapter = delegateAdapter
|
recyclerView.adapter = delegateAdapter
|
||||||
editText.setOnEditorActionListener { v, actionId, _ ->
|
editText.setOnEditorActionListener { v, actionId, _ ->
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
||||||
|
KeyboardUtil.hideKeyboard(v)
|
||||||
keyword = v.text.toString()
|
keyword = v.text.toString()
|
||||||
return@setOnEditorActionListener true
|
return@setOnEditorActionListener true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue