From 8d4c0f505c15f071464bee52b6093c7de5e71981 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sun, 7 Apr 2019 14:58:40 +0200 Subject: [PATCH] Fix shared files not deleted from internal cache --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt index 14739759d6..fbb2f4bbfe 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt @@ -491,7 +491,7 @@ class ReaderPresenter( val destDir = File(context.cacheDir, "shared_image") - Observable.fromCallable { destDir.delete() } // Keep only the last shared file + Observable.fromCallable { destDir.deleteRecursively() } // Keep only the last shared file .map { saveImage(page, destDir, manga) } .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread())