diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt index 0a6180200..74583bae0 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt @@ -20,11 +20,15 @@ abstract class HorizontalPageDelegate(pageView: PageView) : PageDelegate(pageVie private fun setBitmap() { when (mDirection) { Direction.PREV -> { + prevBitmap?.recycle() prevBitmap = prevPage.screenshot() + curBitmap?.recycle() curBitmap = curPage.screenshot() } Direction.NEXT -> { + nextBitmap?.recycle() nextBitmap = nextPage.screenshot() + curBitmap?.recycle() curBitmap = curPage.screenshot() } else -> Unit