diff --git a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt index a2d6e0f81..7aa39bc60 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt @@ -8,7 +8,7 @@ import android.view.MotionEvent import android.widget.FrameLayout import io.legado.app.help.ReadBookConfig import io.legado.app.ui.widget.page.delegate.CoverPageDelegate -import io.legado.app.ui.widget.page.delegate.NoAnmiPageDelegate +import io.legado.app.ui.widget.page.delegate.NoAnimPageDelegate import io.legado.app.ui.widget.page.delegate.PageDelegate import io.legado.app.ui.widget.page.delegate.SlidePageDelegate import io.legado.app.utils.getPrefInt @@ -139,7 +139,7 @@ class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, att fun upPageAnim() { pageDelegate = when (context.getPrefInt("pageAnim")) { 1 -> SlidePageDelegate(this) - 2 -> NoAnmiPageDelegate(this) + 2 -> NoAnimPageDelegate(this) else -> CoverPageDelegate(this) } } diff --git a/app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnmiPageDelegate.kt b/app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnimPageDelegate.kt similarity index 85% rename from app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnmiPageDelegate.kt rename to app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnimPageDelegate.kt index 89e3d9c0a..7d19a25ed 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnmiPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/delegate/NoAnimPageDelegate.kt @@ -3,7 +3,7 @@ package io.legado.app.ui.widget.page.delegate import android.graphics.Canvas import io.legado.app.ui.widget.page.PageView -class NoAnmiPageDelegate(pageView: PageView) : PageDelegate(pageView) { +class NoAnimPageDelegate(pageView: PageView) : PageDelegate(pageView) { override fun onScrollStart() { startScroll(touchX.toInt(), 0, 0, 0) }