From 28eea71890e01541aa220a481ba81574843950b3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 17 Jul 2020 22:17:59 +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/ui/config/OtherConfigFragment.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt index f23fee053..fa33bbc96 100644 --- a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt @@ -69,6 +69,9 @@ class OtherConfigFragment : PreferenceFragmentCompat(), } PreferKey.cleanCache -> { BookHelp.clearCache() + requireActivity().cacheDir.listFiles()?.forEach { + it.delete() + } toast(R.string.clear_cache_success) } }