pull/276/head
gedoor 4 years ago
parent cb7d0c5b36
commit 28eea71890
  1. 3
      app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt

@ -69,6 +69,9 @@ class OtherConfigFragment : PreferenceFragmentCompat(),
} }
PreferKey.cleanCache -> { PreferKey.cleanCache -> {
BookHelp.clearCache() BookHelp.clearCache()
requireActivity().cacheDir.listFiles()?.forEach {
it.delete()
}
toast(R.string.clear_cache_success) toast(R.string.clear_cache_success)
} }
} }

Loading…
Cancel
Save