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()
textPage = pageFactory.currentPage ?: TextPage().format()
pageOffset -= textPage.height
// callBack.upContent(0, false)
callBack.upContent(0, false)
} else if (pageOffset < -textPage.height) {
pageOffset += textPage.height
pageFactory.moveToNext()
textPage = pageFactory.currentPage ?: TextPage().format()
// callBack.upContent(0, false)
callBack.upContent(0, false)
}
invalidate()
}

Loading…
Cancel
Save