|
|
@ -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 |
|
|
|