pull/1164/head
gedoor 3 years ago
parent df838197ae
commit 4a0c2f4f3b
  1. 4
      app/src/main/java/io/legado/app/utils/ViewExtensions.kt

@ -32,9 +32,7 @@ val View.activity: AppCompatActivity?
fun View.hideSoftInput() = run { fun View.hideSoftInput() = run {
val imm = appCtx.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager val imm = appCtx.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager
imm?.let { imm?.hideSoftInputFromWindow(this.windowToken, 0)
imm.hideSoftInputFromWindow(this.windowToken, 0)
}
} }
fun View.disableAutoFill() = run { fun View.disableAutoFill() = run {

Loading…
Cancel
Save