diff --git a/app/src/main/java/io/legado/app/utils/ViewExtensions.kt b/app/src/main/java/io/legado/app/utils/ViewExtensions.kt index 3b3f20270..f2b08ef3c 100644 --- a/app/src/main/java/io/legado/app/utils/ViewExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/ViewExtensions.kt @@ -32,9 +32,7 @@ val View.activity: AppCompatActivity? fun View.hideSoftInput() = run { 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 {