Merge pull request #1211 from JiuZhouWorlds/master

自动翻页时屏幕常亮
pull/1213/head
kunfei 3 years ago committed by GitHub
commit 222324eff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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