From 4a0c2f4f3bcbcd52b0d7b73face15bb6cce29a90 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 23 Jul 2021 21:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/ViewExtensions.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {