pull/32/head
kunfei 5 years ago
parent 8fdf876456
commit 966af854d8
  1. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -415,6 +415,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
viewModel.durPageIndex = page viewModel.durPageIndex = page
page_view.upContent() page_view.upContent()
curPageChanged() curPageChanged()
viewModel.saveRead()
} }
override fun openReplaceRule() { override fun openReplaceRule() {
@ -567,7 +568,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
page_view.upContent() page_view.upContent()
viewModel.saveRead() viewModel.saveRead()
} }
2 -> if (moveToNextChapter()) ReadAloudService.stop(this) 2 -> if (!moveToNextChapter()) ReadAloudService.stop(this)
-1 -> { -1 -> {
if (viewModel.durPageIndex > 0) { if (viewModel.durPageIndex > 0) {
viewModel.durPageIndex = viewModel.durPageIndex - 1 viewModel.durPageIndex = viewModel.durPageIndex - 1

Loading…
Cancel
Save