优化
This commit is contained in:
@@ -227,7 +227,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
private val handler by lazy { buildMainHandler() }
|
private val handler by lazy { buildMainHandler() }
|
||||||
private val screenOffRunnable by lazy { Runnable { keepScreenOn(false) } }
|
private val screenOffRunnable by lazy { Runnable { keepScreenOn(false) } }
|
||||||
private val executor = ReadBook.executor
|
private val executor = ReadBook.executor
|
||||||
private val upSeekBarThrotle = throttle(200) {
|
private val upSeekBarThrottle = throttle(200) {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
upSeekBarProgress()
|
upSeekBarProgress()
|
||||||
binding.readMenu.upSeekBar()
|
binding.readMenu.upSeekBar()
|
||||||
@@ -1374,7 +1374,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onLayoutPageCompleted(index: Int, page: TextPage) {
|
override fun onLayoutPageCompleted(index: Int, page: TextPage) {
|
||||||
upSeekBarThrotle.invoke()
|
upSeekBarThrottle.invoke()
|
||||||
binding.readView.onLayoutPageCompleted(index, page)
|
binding.readView.onLayoutPageCompleted(index, page)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user