This commit is contained in:
kunfei committed 2023-04-18 19:57:58 +08:00
1 parent 0a1b12b814
commit 5e6b56076b
1 file changed
+1 -1
@@ -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)
}