feat: 优化代码

pull/159/head
kunfei 5 years ago
parent c35c9d0267
commit 12a90a4531
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt

@ -108,8 +108,10 @@ class ContentView(context: Context) : FrameLayout(context) {
} }
} }
fun setContent(textPage: TextPage) { fun setContent(textPage: TextPage, resetPageOffset: Boolean) {
setProgress(textPage) setProgress(textPage)
if (resetPageOffset)
resetPageOffset()
content_text_view.setContent(textPage) content_text_view.setContent(textPage)
} }

Loading…
Cancel
Save