From 341ddaaf62b1fdfba51c7f75ecd01702edaca3c1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Dec 2019 16:45:51 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/FileHelp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/FileHelp.kt b/app/src/main/java/io/legado/app/help/FileHelp.kt index a208a74a2..5a7678563 100644 --- a/app/src/main/java/io/legado/app/help/FileHelp.kt +++ b/app/src/main/java/io/legado/app/help/FileHelp.kt @@ -47,7 +47,7 @@ object FileHelp { if (file.isDirectory) { val files = file.listFiles() - for (subFile in files) { + files?.forEach { subFile -> val path = subFile.path deleteFile(path) }