pull/1751/head
kunfei 3 years ago
parent e662f1c554
commit 0ab23d5f03
  1. 5
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -46,9 +46,8 @@ object BookHelp {
*/
fun clearRemovedCache() {
Coroutine.async {
val bookFolderNames = arrayListOf<String>()
appDb.bookDao.all.forEach {
bookFolderNames.add(it.getFolderName())
val bookFolderNames = appDb.bookDao.all.map {
it.getFolderName()
}
val file = downloadDir.getFile(cacheFolderName)
file.listFiles()?.forEach { bookFile ->

Loading…
Cancel
Save