Merge "Fixing page indicator being drawn at wrong position" into ub-launcher3-calgary
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user