自动翻页时屏幕常亮

pull/1211/head
NineWorlds 3 years ago
parent 9b100ba6a4
commit 967ae46c78
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -686,6 +686,8 @@ class ReadBookActivity : ReadBookBaseActivity(),
binding.readView.upContent(1) binding.readView.upContent(1)
autoPagePlus() autoPagePlus()
binding.readMenu.setAutoPage(true) binding.readMenu.setAutoPage(true)
screenTimeOut=-1L
screenOffTimerStart()
} }
} }
@ -694,6 +696,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
mHandler.removeCallbacks(autoPageRunnable) mHandler.removeCallbacks(autoPageRunnable)
binding.readView.upContent() binding.readView.upContent()
binding.readMenu.setAutoPage(false) binding.readMenu.setAutoPage(false)
upScreenTimeOut()
} }
private fun autoPagePlus() { private fun autoPagePlus() {

Loading…
Cancel
Save