out of bounds on 25 fix
This commit is contained in:
parent
876304065d
commit
ac98417355
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue