diff options
author | Danesh M <daneshm90@gmail.com> | 2013-12-11 10:46:11 -0800 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2013-12-11 10:46:11 -0800 |
commit | 2d7344dc1f6789b36843e73ee9b5aac430d948a2 (patch) | |
tree | 320e3df548f2854f89a89061c556a979fb4d1d14 | |
parent | 682bf19fd5309faa23321700b374f13dd9a4b2d1 (diff) | |
download | android_frameworks_base-2d7344dc1f6789b36843e73ee9b5aac430d948a2.tar.gz android_frameworks_base-2d7344dc1f6789b36843e73ee9b5aac430d948a2.tar.bz2 android_frameworks_base-2d7344dc1f6789b36843e73ee9b5aac430d948a2.zip |
CircleBattery : Use consistent padding for layoutDirection
Use padding left consitently since paddingStart takes care of its automatic value.
Change-Id: I187e79489a26dd4e5328f816bb69c79f177697e8
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java index 77523bd2b01..50dd38fe117 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java @@ -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(); |