Merge "Fixing page indicator being drawn at wrong position" into ub-launcher3-calgary

This commit is contained in:
Sunny Goyal
2016-07-15 18:04:56 +00:00
committed by Android (Google) Code Review
@@ -167,7 +167,7 @@ public class PageIndicatorLineCaret extends PageIndicator {
int lineWidth = (int) (availableWidth / mNumPagesFloat);
int lineLeft = (int) (progress * (availableWidth - lineWidth));
int lineRight = lineLeft + lineWidth;
canvas.drawRect(lineLeft, canvas.getHeight() + mLineHeight, lineRight, canvas.getHeight(),
canvas.drawRect(lineLeft, canvas.getHeight() - mLineHeight, lineRight, canvas.getHeight(),
mLinePaint);
}