mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Use View.getHeight() instead of Canvas.getHeight() for PageIndicatorDots
Use View.getHeight() instead of Canvas.getHeight() to get the same height regardless of using hardware or software accelerated drawing. Test: manual Change-Id: I475afef017102d7968f28a7aab8116238af3d90d
This commit is contained in:
committed by
Sunny Goyal
parent
018e3c4447
commit
53da286c05
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user