diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index 0e85d9c35..279249383 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -66,7 +66,7 @@ class PageView(context: Context) : FrameLayout(context) { fun getBitmap(): Bitmap? { synchronized(this) { - return bitmap + return bitmap?.copy(Bitmap.Config.ARGB_8888, false) } } 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 0be97c422..b8713cbb9 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,15 +20,15 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie when (mDirection) { PageDirection.PREV -> { prevBitmap?.recycle() - prevBitmap = prevPage.getBitmap()?.copy(Bitmap.Config.ARGB_8888, false) + prevBitmap = prevPage.getBitmap() curBitmap?.recycle() - curBitmap = curPage.getBitmap()?.copy(Bitmap.Config.ARGB_8888, false) + curBitmap = curPage.getBitmap() } PageDirection.NEXT -> { nextBitmap?.recycle() - nextBitmap = nextPage.getBitmap()?.copy(Bitmap.Config.ARGB_8888, false) + nextBitmap = nextPage.getBitmap() curBitmap?.recycle() - curBitmap = curPage.getBitmap()?.copy(Bitmap.Config.ARGB_8888, false) + curBitmap = curPage.getBitmap() } else -> Unit }