mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 11:51:50 +01:00
Minor changes
This commit is contained in:
parent
90e0e0b72a
commit
19c713ebb2
@ -332,9 +332,9 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
|
|||||||
fun retryPage(page: Page?) {
|
fun retryPage(page: Page?) {
|
||||||
if (page != null && source is OnlineSource) {
|
if (page != null && source is OnlineSource) {
|
||||||
page.status = Page.QUEUE
|
page.status = Page.QUEUE
|
||||||
if (page.imagePath != null) {
|
val path = page.imagePath
|
||||||
val file = File(page.imagePath)
|
if (!path.isNullOrEmpty() && !page.chapter.isDownloaded) {
|
||||||
chapterCache.removeFileFromCache(file.name)
|
chapterCache.removeFileFromCache(File(path).name)
|
||||||
}
|
}
|
||||||
loader.retryPage(page)
|
loader.retryPage(page)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user