|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|