* commit 'ef390443eb7a6a4ac52c62aea65e7ba94f1f897a': Fix battery-history-chart large-mode labels in RTL layouts.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user