From 830d6da5c7f5af7c3b64d6fcda615abfb8134d76 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Wed, 27 Dec 2023 10:14:09 +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/model/localBook/LocalBook.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt index 15bcac44b..58a214cd9 100644 --- a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt +++ b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt @@ -76,7 +76,7 @@ object LocalBook { } val file = File(uri.path!!) if (file.exists()) { - return@runCatching File(uri.path!!).lastModified() + return@runCatching file.lastModified() } throw FileNotFoundException("${uri.path} 文件不存在") }