mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
7fbc23ab13
commit
7ab30130ab
@ -48,6 +48,7 @@ class AutoPager(private val readView: ReadView) {
|
||||
readView.curPage.upSelectAble(AppConfig.textSelectAble)
|
||||
readView.invalidate()
|
||||
reset()
|
||||
picture = null
|
||||
}
|
||||
|
||||
fun pause() {
|
||||
@ -143,4 +144,4 @@ class AutoPager(private val readView: ReadView) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -537,10 +537,6 @@ class ReadView(context: Context, attrs: AttributeSet) :
|
||||
if (isScroll && !isAutoPage) {
|
||||
curPage.setContent(pageFactory.curPage, resetPageOffset)
|
||||
} else {
|
||||
// if (isAutoPage && relativePosition >= 0) {
|
||||
//// clearNextPageBitmap()
|
||||
// autoPager.clear()
|
||||
// }
|
||||
when (relativePosition) {
|
||||
-1 -> prevPage.setContent(pageFactory.prevPage)
|
||||
1 -> nextPage.setContent(pageFactory.nextPage)
|
||||
|
Loading…
Reference in New Issue
Block a user