Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6a32d13 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix pageindicator for RTL mode" into udc-qpr-dev

parents 57d68b48 246f1c92
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -381,7 +381,9 @@ public class PageIndicatorDots extends View implements Insettable, PageIndicator

        // Draw all page indicators;
        float circleGap = mCircleGap;
        float startX = (getWidth() - (mNumPages * circleGap) + mDotRadius) / 2;
        float startX = ((float) getWidth() / 2)
                - (mCircleGap * (((float) mNumPages - 1) / 2))
                - mDotRadius;

        float x = startX + mDotRadius;
        float y = getHeight() / 2;
@@ -420,9 +422,9 @@ public class PageIndicatorDots extends View implements Insettable, PageIndicator
        float startCircle = (int) mCurrentPosition;
        float delta = mCurrentPosition - startCircle;
        float diameter = 2 * mDotRadius;
        float startX;

        startX = ((getWidth() - (mNumPages * mCircleGap) + mDotRadius) / 2);
        float startX = ((float) getWidth() / 2)
                - (mCircleGap * (((float) mNumPages - 1) / 2))
                - mDotRadius;
        sTempRect.top = (getHeight() * 0.5f) - mDotRadius;
        sTempRect.bottom = (getHeight() * 0.5f) + mDotRadius;
        sTempRect.left = startX + (startCircle * mCircleGap);