mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-29 05:31:03 +00:00
out of bounds on 25 fix
This commit is contained in:
@@ -120,6 +120,7 @@ class MangaChapterAdapter(
|
|||||||
|
|
||||||
fun downloadNChaptersFrom(position: Int, n: Int) {
|
fun downloadNChaptersFrom(position: Int, n: Int) {
|
||||||
//download next n chapters
|
//download next n chapters
|
||||||
|
if (position < 0 || position >= arr.size) return
|
||||||
for (i in 0..<n) {
|
for (i in 0..<n) {
|
||||||
if (position + i < arr.size) {
|
if (position + i < arr.size) {
|
||||||
val chapterNumber = arr[position + i].number
|
val chapterNumber = arr[position + i].number
|
||||||
|
|||||||
Reference in New Issue
Block a user