|
|
@ -2,14 +2,9 @@ package io.legado.app.ui.book.read.page.delegate |
|
|
|
|
|
|
|
|
|
|
|
import android.graphics.Canvas |
|
|
|
import android.graphics.Canvas |
|
|
|
import io.legado.app.ui.book.read.page.ReadView |
|
|
|
import io.legado.app.ui.book.read.page.ReadView |
|
|
|
import io.legado.app.ui.book.read.page.entities.PageDirection |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NoAnimPageDelegate(readView: ReadView) : HorizontalPageDelegate(readView) { |
|
|
|
class NoAnimPageDelegate(readView: ReadView) : HorizontalPageDelegate(readView) { |
|
|
|
|
|
|
|
|
|
|
|
override fun setDirection(direction: PageDirection) { |
|
|
|
|
|
|
|
mDirection = direction |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun onAnimStart(animationSpeed: Int) { |
|
|
|
override fun onAnimStart(animationSpeed: Int) { |
|
|
|
if (!isCancel) { |
|
|
|
if (!isCancel) { |
|
|
|
readView.fillPage(mDirection) |
|
|
|
readView.fillPage(mDirection) |
|
|
|