feat: 优化代码

pull/105/head
kunfei 5 years ago
parent 0ed17d6abc
commit 0a66bee80f
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt

@ -162,6 +162,12 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi
}
override fun onScrollStop() {
prevBitmap?.recycle()
prevBitmap = null
nextBitmap?.recycle()
nextBitmap = null
curBitmap?.recycle()
curBitmap = null
if (!isCancel) {
pageView.fillPage(mDirection)
}

Loading…
Cancel
Save