mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
7bf0a00b14
commit
52ddef1a3c
@ -42,7 +42,7 @@ fun View.hideSoftInput() = run {
|
|||||||
inputMethodManager.hideSoftInputFromWindow(this.windowToken, 0)
|
inputMethodManager.hideSoftInputFromWindow(this.windowToken, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun View.showSoftInput() = run {
|
fun EditText.showSoftInput() = run {
|
||||||
requestFocus()
|
requestFocus()
|
||||||
inputMethodManager.showSoftInput(this, InputMethodManager.RESULT_SHOWN)
|
inputMethodManager.showSoftInput(this, InputMethodManager.RESULT_SHOWN)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user