mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 13:48:55 +03:00
Minor changes
This commit is contained in:
parent
90e0e0b72a
commit
19c713ebb2
1 changed files with 3 additions and 3 deletions
|
@ -332,9 +332,9 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
|
|||
fun retryPage(page: Page?) {
|
||||
if (page != null && source is OnlineSource) {
|
||||
page.status = Page.QUEUE
|
||||
if (page.imagePath != null) {
|
||||
val file = File(page.imagePath)
|
||||
chapterCache.removeFileFromCache(file.name)
|
||||
val path = page.imagePath
|
||||
if (!path.isNullOrEmpty() && !page.chapter.isDownloaded) {
|
||||
chapterCache.removeFileFromCache(File(path).name)
|
||||
}
|
||||
loader.retryPage(page)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue