From 35a1b519694f3d03f11fa5cb124f6862ff74e8f2 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 29 Sep 2021 14:10:08 +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 --- .../main/java/io/legado/app/service/HttpReadAloudService.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 237c6c6ec..255ec4ecd 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -183,9 +183,6 @@ class HttpReadAloudService : BaseReadAloudService(), private fun removeCacheFile() { FileUtils.listDirsAndFiles(speakFilePath())?.forEach { - if (it == null) { - return@forEach - } if (Regex(""".+\.mp3$""").matches(it.name)) { //mp3缓存文件 val reg = """^${MD5Utils.md5Encode16(textChapter!!.title)}_[a-z0-9]{16}\.mp3$""".toRegex()