From 7d178ebc8bb40ac4a8f83189305f1b3976d687dd Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 3 Mar 2020 16:15:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/read/page/delegate/HorizontalPageDelegate.kt | 4 ++++ 1 file changed, 4 insertions(+) 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