diff options
author | John Spurlock <jspurlock@google.com> | 2014-10-13 22:13:01 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-13 22:13:01 +0000 |
commit | a0d28225352a10c542bb2ee6fd8daef7886c4a25 (patch) | |
tree | 6a02e56e5453c4a24d4daab6aadd1f5f34eaf81a /src/com | |
parent | ca2d56a84927e08eb5418b79ad5cd6d57db10d23 (diff) | |
parent | ef390443eb7a6a4ac52c62aea65e7ba94f1f897a (diff) | |
download | packages_apps_Settings-a0d28225352a10c542bb2ee6fd8daef7886c4a25.zip packages_apps_Settings-a0d28225352a10c542bb2ee6fd8daef7886c4a25.tar.gz packages_apps_Settings-a0d28225352a10c542bb2ee6fd8daef7886c4a25.tar.bz2 |
am ef390443: am a312f7f8: Fix battery-history-chart large-mode labels in RTL layouts.
* commit 'ef390443eb7a6a4ac52c62aea65e7ba94f1f897a':
Fix battery-history-chart large-mode labels in RTL layouts.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/fuelgauge/BatteryHistoryChart.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/fuelgauge/BatteryHistoryChart.java b/src/com/android/settings/fuelgauge/BatteryHistoryChart.java index 11e821a..78e3c6d 100644 --- a/src/com/android/settings/fuelgauge/BatteryHistoryChart.java +++ b/src/com/android/settings/fuelgauge/BatteryHistoryChart.java @@ -1273,6 +1273,8 @@ public class BatteryHistoryChart extends View { if (mLargeMode) { if (DEBUG) Log.d(TAG, "Drawing large mode labels"); + Paint.Align align = mTextPaint.getTextAlign(); + mTextPaint.setTextAlign(textAlignLeft); // large-mode labels always aligned to start if (mHavePhoneSignal) { canvas.drawText(mPhoneSignalLabel, textStartX, height - mPhoneSignalOffset - mTextDescent, mTextPaint); @@ -1291,6 +1293,7 @@ public class BatteryHistoryChart extends View { height - mChargingOffset - mTextDescent, mTextPaint); canvas.drawText(mScreenOnLabel, textStartX, height - mScreenOnOffset - mTextDescent, mTextPaint); + mTextPaint.setTextAlign(align); } canvas.drawLine(mLevelLeft-mThinLineWidth, mLevelTop, mLevelLeft-mThinLineWidth, |