From 74cc21b8a55b8858bfa8325fdce140c0bd66e867 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 30 Nov 2019 18:29:40 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/help/ReadBook.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/help/ReadBook.kt b/app/src/main/java/io/legado/app/service/help/ReadBook.kt index 2e601b51d..d1b7f22e0 100644 --- a/app/src/main/java/io/legado/app/service/help/ReadBook.kt +++ b/app/src/main/java/io/legado/app/service/help/ReadBook.kt @@ -218,21 +218,18 @@ object ReadBook { ) when (chapter.index) { durChapterIndex -> withContext(Main) { - curTextChapter = ChapterProvider - .getTextChapter(chapter, c, chapterSize) + curTextChapter = ChapterProvider.getTextChapter(chapter, c, chapterSize) callBack?.upContent() callBack?.curChapterChanged() curPageChanged() callBack?.contentLoadFinish() } durChapterIndex - 1 -> withContext(Main) { - prevTextChapter = ChapterProvider - .getTextChapter(chapter, c, chapterSize) + prevTextChapter = ChapterProvider.getTextChapter(chapter, c, chapterSize) callBack?.upContent(-1) } durChapterIndex + 1 -> withContext(Main) { - nextTextChapter = ChapterProvider - .getTextChapter(chapter, c, chapterSize) + nextTextChapter = ChapterProvider.getTextChapter(chapter, c, chapterSize) callBack?.upContent(1) } }