feat: 优化代码

pull/115/head
kunfei 5 years ago
parent a9eadf79f8
commit c35e393ebb
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt

@ -159,12 +159,12 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
pageFactory.moveToPrev() pageFactory.moveToPrev()
textPage = pageFactory.currentPage ?: TextPage().format() textPage = pageFactory.currentPage ?: TextPage().format()
pageOffset -= textPage.height pageOffset -= textPage.height
// callBack.upContent(0, false) callBack.upContent(0, false)
} else if (pageOffset < -textPage.height) { } else if (pageOffset < -textPage.height) {
pageOffset += textPage.height pageOffset += textPage.height
pageFactory.moveToNext() pageFactory.moveToNext()
textPage = pageFactory.currentPage ?: TextPage().format() textPage = pageFactory.currentPage ?: TextPage().format()
// callBack.upContent(0, false) callBack.upContent(0, false)
} }
invalidate() invalidate()
} }

Loading…
Cancel
Save