|
|
@ -20,11 +20,15 @@ abstract class HorizontalPageDelegate(pageView: PageView) : PageDelegate(pageVie |
|
|
|
private fun setBitmap() { |
|
|
|
private fun setBitmap() { |
|
|
|
when (mDirection) { |
|
|
|
when (mDirection) { |
|
|
|
Direction.PREV -> { |
|
|
|
Direction.PREV -> { |
|
|
|
|
|
|
|
prevBitmap?.recycle() |
|
|
|
prevBitmap = prevPage.screenshot() |
|
|
|
prevBitmap = prevPage.screenshot() |
|
|
|
|
|
|
|
curBitmap?.recycle() |
|
|
|
curBitmap = curPage.screenshot() |
|
|
|
curBitmap = curPage.screenshot() |
|
|
|
} |
|
|
|
} |
|
|
|
Direction.NEXT -> { |
|
|
|
Direction.NEXT -> { |
|
|
|
|
|
|
|
nextBitmap?.recycle() |
|
|
|
nextBitmap = nextPage.screenshot() |
|
|
|
nextBitmap = nextPage.screenshot() |
|
|
|
|
|
|
|
curBitmap?.recycle() |
|
|
|
curBitmap = curPage.screenshot() |
|
|
|
curBitmap = curPage.screenshot() |
|
|
|
} |
|
|
|
} |
|
|
|
else -> Unit |
|
|
|
else -> Unit |
|
|
|