kunfei hace 3 años
padre
commit
5e6b56076b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/src/main/java/io/legado/app/utils/ViewExtensions.kt

+ 1 - 1
app/src/main/java/io/legado/app/utils/ViewExtensions.kt

@@ -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)
 }