Add property to get the number of a page

This commit is contained in:
len
2016-11-29 22:32:44 +01:00
parent d30c019b89
commit 3e1dc9f400
4 changed files with 6 additions and 3 deletions
@@ -302,7 +302,7 @@ class Downloader(private val context: Context, private val provider: DownloadPro
if (page.imageUrl == null)
return Observable.just(page)
val filename = String.format("%03d", page.index + 1)
val filename = String.format("%03d", page.number)
val tmpFile = tmpDir.findFile("$filename.tmp")
// Delete temp file if it exists.