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) } }