Merge "Fix tinting of battery percentage" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c34f078f61
@@ -401,10 +401,10 @@ public class BatteryMeterView extends LinearLayout implements
|
||||
|| mShowPercentMode == MODE_ON || mShowPercentMode == MODE_ESTIMATE) {
|
||||
if (!showing) {
|
||||
mBatteryPercentView = loadPercentView();
|
||||
if (mTextColor != 0) mBatteryPercentView.setTextColor(mTextColor);
|
||||
if (mPercentageStyleId != 0) { // Only set if specified as attribute
|
||||
mBatteryPercentView.setTextAppearance(mPercentageStyleId);
|
||||
}
|
||||
if (mTextColor != 0) mBatteryPercentView.setTextColor(mTextColor);
|
||||
updatePercentText();
|
||||
addView(mBatteryPercentView,
|
||||
new ViewGroup.LayoutParams(
|
||||
|
||||
Reference in New Issue
Block a user