mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -227,7 +227,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
private val handler by lazy { buildMainHandler() }
|
||||
private val screenOffRunnable by lazy { Runnable { keepScreenOn(false) } }
|
||||
private val executor = ReadBook.executor
|
||||
private val upSeekBarThrotle = throttle(200) {
|
||||
private val upSeekBarThrottle = throttle(200) {
|
||||
runOnUiThread {
|
||||
upSeekBarProgress()
|
||||
binding.readMenu.upSeekBar()
|
||||
@@ -1374,7 +1374,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
}
|
||||
|
||||
override fun onLayoutPageCompleted(index: Int, page: TextPage) {
|
||||
upSeekBarThrotle.invoke()
|
||||
upSeekBarThrottle.invoke()
|
||||
binding.readView.onLayoutPageCompleted(index, page)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user