feat: 优化代码

pull/105/head
kunfei 5 years ago
parent b03699ddf7
commit 9953c37549
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt

@ -387,8 +387,7 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi
if (hmg > mMaxLength) if (hmg > mMaxLength)
mCurrentPageShadow.setBounds( mCurrentPageShadow.setBounds(
(mBezierControl2.x - 25).toInt() - hmg, leftX, (mBezierControl2.x - 25).toInt() - hmg, leftX,
(mBezierControl2.x + mMaxLength).toInt() - hmg, (mBezierControl2.x + mMaxLength).toInt() - hmg, rightX
rightX
) )
else else
mCurrentPageShadow.setBounds( mCurrentPageShadow.setBounds(

Loading…
Cancel
Save