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

This commit is contained in:
Sunny Goyal authored and Android (Google) Code Review committed 2016-07-15 18:04:57 +00:00
commit 879f3bcef5
1 file changed
+1 -1
@@ -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);
}