Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Feb 13, 2024
1 parent 7fbc23a commit 7ab3013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class AutoPager(private val readView: ReadView) {
readView.curPage.upSelectAble(AppConfig.textSelectAble)
readView.invalidate()
reset()
picture = null
}

fun pause() {
Expand Down Expand Up @@ -143,4 +144,4 @@ class AutoPager(private val readView: ReadView) {
}
}

}
}
4 changes: 0 additions & 4 deletions app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ab3013

Please sign in to comment.