From f5d15056c33f387a761a3ebc7635ff71128fbb1b Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 9 Aug 2020 21:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/Help.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/Help.kt b/app/src/main/java/io/legado/app/ui/book/read/Help.kt index 1b4c23bee..ab86ed909 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/Help.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/Help.kt @@ -133,7 +133,7 @@ object Help { .apply { view = this setBackgroundColor(context.backgroundColor) - edit_start.setText(book.durChapterIndex.toString()) + edit_start.setText((book.durChapterIndex + 1).toString()) edit_end.setText(book.totalChapterNum.toString()) } } @@ -141,7 +141,7 @@ object Help { view?.apply { val start = edit_start?.text?.toString()?.toInt() ?: 0 val end = edit_end?.text?.toString()?.toInt() ?: book.totalChapterNum - Download.start(context, book.bookUrl, start, end) + Download.start(context, book.bookUrl, start - 1, end - 1) } } noButton()