Merge "Use View.getHeight() instead of Canvas.getHeight() for PageIndicatorDots" into ub-launcher3-master

This commit is contained in:
Sunny Goyal 2018-08-23 18:57:06 +00:00 committed by Android (Google) Code Review
commit 911378c8d9
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class PageIndicatorDots extends View implements PageIndicator {
float startX = (getWidth() - mNumPages * circleGap + mDotRadius) / 2;
float x = startX + mDotRadius;
float y = canvas.getHeight() / 2;
float y = getHeight() / 2;
if (mEntryAnimationRadiusFactors != null) {
// During entry animation, only draw the circles