feat: 优化代码

pull/105/head
kunfei 5 years ago
parent 655d790a6e
commit 80b6dfab14
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt

@ -279,13 +279,13 @@ abstract class PageDelegate(protected val pageView: PageView) {
if (!hasNext()) { if (!hasNext()) {
return true return true
} }
setDirection(Direction.PREV) setDirection(Direction.NEXT)
setBitmap() setBitmap()
} else { } else {
if (!hasPrev()) { if (!hasPrev()) {
return true return true
} }
setDirection(Direction.NEXT) setDirection(Direction.PREV)
setBitmap() setBitmap()
} }
setTouchPoint(x, y) setTouchPoint(x, y)

Loading…
Cancel
Save