Fix download ahead missing out 1 chapter (#7927)

* Fix download ahead missing out 1 chapter

* Move toLong() function

* Add check whether the next chapter is queued
This commit is contained in:
nzoba
2022-09-10 04:29:24 +02:00
committed by GitHub
parent 6b91f65457
commit 07d1b9f3ba
6 changed files with 19 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
package eu.kanade.tachiyomi.util.system
fun Boolean.toInt() = if (this) 1 else 0
fun Boolean.toLong() = if (this) 1L else 0L