Fixing paged view overscroll effect being drawn outside the screen

bounds when in transposed layout.

Change-Id: I93be6a003b7d28708697990cfae8c7be96f84676
This commit is contained in:
Sunny Goyal
2015-06-22 15:11:31 -07:00
parent 9c9f20905c
commit 5e41a27fdb

View File

@@ -1173,8 +1173,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
if (!mEdgeGlowRight.isFinished()) {
final int restoreCount = canvas.save();
Rect display = mViewport;
canvas.translate(display.left +
display.width() * (getChildCount() - 1), display.top);
canvas.translate(display.left + mPageScrolls[getChildCount() - 1], display.top);
canvas.rotate(90);
getEdgeVerticalPostion(sTmpIntPoint);