自动翻页时屏幕常亮

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

Loading…
Cancel
Save