From 966af854d8bb36f22a76823c60195c498d4cd532 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 7 Sep 2019 21:54:59 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index e070950d6..3e45d65d2 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -415,6 +415,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea viewModel.durPageIndex = page page_view.upContent() curPageChanged() + viewModel.saveRead() } override fun openReplaceRule() { @@ -567,7 +568,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea page_view.upContent() viewModel.saveRead() } - 2 -> if (moveToNextChapter()) ReadAloudService.stop(this) + 2 -> if (!moveToNextChapter()) ReadAloudService.stop(this) -1 -> { if (viewModel.durPageIndex > 0) { viewModel.durPageIndex = viewModel.durPageIndex - 1