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

Commit 708f5a55 authored by Danesh M's avatar Danesh M Committed by Brint E. Kriebel
Browse files

CircleBattery : Use consistent padding for layoutDirection

Use padding left consitently since paddingStart takes care of its automatic value.

Change-Id: I187e79489a26dd4e5328f816bb69c79f177697e8
parent 688f5ca2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -315,9 +315,9 @@ public class CircleBattery extends ImageView implements BatteryController.Batter
        mPaintGray.setStrokeWidth(strokeWidth / 3.5f);

        // calculate rectangle for drawArc calls
        int pLeft = getPaddingStart();
        mRectLeft = new RectF(getPaddingLeft() + strokeWidth / 2.0f, 0 + strokeWidth / 2.0f, mCircleSize
                - strokeWidth / 2.0f + getPaddingLeft(), mCircleSize - strokeWidth / 2.0f);
        int pLeft = getPaddingLeft();
        mRectLeft = new RectF(pLeft + strokeWidth / 2.0f, 0 + strokeWidth / 2.0f, mCircleSize
                - strokeWidth / 2.0f + pLeft, mCircleSize - strokeWidth / 2.0f);

        // calculate Y position for text
        Rect bounds = new Rect();