diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 9591f1ae2..4f43bdb37 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -683,8 +683,8 @@ class ReadBookActivity : ReadBookBaseActivity(), autoPageStop() } else { isAutoPage = true - binding.readView.upContent() - binding.readView.upContent(1) + binding.readView.upContent(resetPageOffset = false) + binding.readView.upContent(1, resetPageOffset = false) autoPagePlus() binding.readMenu.setAutoPage(true) screenTimeOut = -1L @@ -693,11 +693,13 @@ class ReadBookActivity : ReadBookBaseActivity(), } override fun autoPageStop() { - isAutoPage = false - mHandler.removeCallbacks(autoPageRunnable) - binding.readView.upContent() - binding.readMenu.setAutoPage(false) - upScreenTimeOut() + if (isAutoPage) { + isAutoPage = false + mHandler.removeCallbacks(autoPageRunnable) + binding.readView.upContent(resetPageOffset = false) + binding.readMenu.setAutoPage(false) + upScreenTimeOut() + } } private fun autoPagePlus() {