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