From 0232ed2b6539b6ea0b136a5ab049e76de87c0825 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 21 Nov 2020 22:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/service/help/ReadBook.kt | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 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 561155843..4c022c653 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 @@ -191,12 +191,7 @@ object ReadBook { if (book != null && textChapter != null) { val key = IntentDataHelp.putData(textChapter) ReadAloud.play( - App.INSTANCE, - book.name, - textChapter.title, - durPageIndex, - key, - play + App.INSTANCE, book.name, textChapter.title, durPageIndex, key, play ) } } @@ -275,10 +270,7 @@ object ReadBook { CacheBook.download(webBook, book, chapter) } else if (book != null) { contentLoadFinish( - book, - chapter, - "没有书源", - resetPageOffset = resetPageOffset + book, chapter, "没有书源", resetPageOffset = resetPageOffset ) removeLoading(chapter.index) } else { @@ -383,11 +375,7 @@ object ReadBook { durChapterIndex -> { curTextChapter = ChapterProvider.getTextChapter( - book, - chapter, - contents, - chapterSize, - imageStyle + book, chapter, contents, chapterSize, imageStyle ) if (upContent) callBack?.upContent(resetPageOffset = resetPageOffset) callBack?.upView() @@ -397,22 +385,14 @@ object ReadBook { durChapterIndex - 1 -> { prevTextChapter = ChapterProvider.getTextChapter( - book, - chapter, - contents, - chapterSize, - imageStyle + book, chapter, contents, chapterSize, imageStyle ) if (upContent) callBack?.upContent(-1, resetPageOffset) } durChapterIndex + 1 -> { nextTextChapter = ChapterProvider.getTextChapter( - book, - chapter, - contents, - chapterSize, - imageStyle + book, chapter, contents, chapterSize, imageStyle ) if (upContent) callBack?.upContent(1, resetPageOffset) }