Merge "Fix battery content description when there is no percent mode" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-17 15:24:44 +00:00
committed by Android (Google) Code Review

View File

@@ -365,6 +365,10 @@ public class BatteryMeterView extends LinearLayout implements
} else { } else {
setPercentTextAtCurrentLevel(); setPercentTextAtCurrentLevel();
} }
} else {
setContentDescription(
getContext().getString(mCharging ? R.string.accessibility_battery_level_charging
: R.string.accessibility_battery_level, mLevel));
} }
} }