mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 13:53:16 -05:00
Fix shared files not deleted from internal cache
This commit is contained in:
parent
8f2878a841
commit
8d4c0f505c
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ class ReaderPresenter(
|
||||||
|
|
||||||
val destDir = File(context.cacheDir, "shared_image")
|
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) }
|
.map { saveImage(page, destDir, manga) }
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
|
Loading…
Reference in a new issue